javax.management
Class NotificationBroadcasterSupport
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
- All Implemented Interfaces:
- NotificationBroadcaster
- Direct Known Subclasses:
- LoggerBroadcaster, MBeanServerDelegate, Monitor, RelationService, RequiredModelMBean, Timer
- public class NotificationBroadcasterSupport
- extends java.lang.Object
- implements NotificationBroadcaster
Method Summary |
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Adds a listener to the registered MBean. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
Returns the name of the java class of the notification and the
notification types sent. |
void |
removeNotificationListener(javax.management.NotificationListener listener)
Removes a listener. |
void |
sendNotification(javax.management.Notification n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationBroadcasterSupport
public NotificationBroadcasterSupport()
addNotificationListener
public void addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
- Description copied from interface:
NotificationBroadcaster
- Adds a listener to the registered MBean.
- Specified by:
addNotificationListener
in interface NotificationBroadcaster
- Parameters:
listener
- The listener that will handle the notifications emitted
by the registered MBean.filter
- The NotificationFilter
to use.handback
- The object to be sent back to the listener.
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener listener)
throws ListenerNotFoundException
- Description copied from interface:
NotificationBroadcaster
- Removes a listener. All entries corresponding to the listener will be
removed (in the case of the listener being registered with different
handbacks and filters ).
- Specified by:
removeNotificationListener
in interface NotificationBroadcaster
- Parameters:
listener
- The NotificationListener
- Throws:
ListenerNotFoundException
- If no such listener exists.
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Description copied from interface:
NotificationBroadcaster
- Returns the name of the java class of the notification and the
notification types sent.
- Specified by:
getNotificationInfo
in interface NotificationBroadcaster
- Returns:
- MBeanNotificationInfo The NotificationInfo
sendNotification
public void sendNotification(javax.management.Notification n)