NotificationPublisher implementation that uses the infrastructure
provided by the ModelMBean interface to track
javax.management.NotificationListeners
and send Notifications to those listeners.
javax.management.modelmbean.ModelMBeanNotificationBroadcaster , NotificationPublisherAware
| Modifier and Type | Field and Description |
|---|---|
| private final Object | managedResource
The managed resource associated with the |
| private final ModelMBeanNotificationBroadcaster | modelMBean
The |
| private final ObjectName | objectName
The |
| Access | Constructor and Description |
|---|---|
| public | ModelMBeanNotificationPublisher(ModelMBeanNotificationBroadcaster
the target modelMBean, ObjectName ModelMBean; must not be nullthe objectName, Object ObjectName of the source ModelMBeanthe managed resource exposed by the supplied managedResource)ModelMBeanCreate a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| private void | replaceNotificationSourceIfNecessary(Notification
the notification)Notification whose
javax. might need massagingReplaces the notification source if necessary to do so. |
| public void | sendNotification(Notification
the notification)Notification to be sentImplements org. Send the supplied |
| managedResource | back to summary |
|---|---|
| private final Object managedResource The managed resource associated with the | |
| modelMBean | back to summary |
|---|---|
| private final ModelMBeanNotificationBroadcaster modelMBean The | |
| objectName | back to summary |
|---|---|
| private final ObjectName objectName The | |
| ModelMBeanNotificationPublisher | back to summary |
|---|---|
| public ModelMBeanNotificationPublisher(ModelMBeanNotificationBroadcaster modelMBean, ObjectName objectName, Object managedResource) Create a new instance of the
| |
| replaceNotificationSourceIfNecessary | back to summary |
|---|---|
| private void replaceNotificationSourceIfNecessary(Notification notification) Replaces the notification source if necessary to do so.
From the
| |
| sendNotification | back to summary |
|---|---|
| public void sendNotification(Notification notification) Implements org. Send the supplied
| |