| java.lang.Object javax.management.NotificationBroadcasterSupport
NotificationBroadcasterSupport | public class NotificationBroadcasterSupport implements NotificationBroadcaster(Code) | | This class provides an implementation of NotificationBroadcaster. It could
be used as a super class of MBean to deal with notification. If inheritance
can't be used, the following code can be used as an example for
NotificationBroadcaster implementation.
|
NotificationBroadcasterSupport | public NotificationBroadcasterSupport()(Code) | | Creates a NotificationBraoadCasterSupport. Default constructor.
|
addNotificationListener | public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)(Code) | | Enables a couple (listener,handback) for a registered MBean to be added.
Parameters: listener - The listener object which will handles notificationsemitted by the registered MBean. Parameters: filter - The filter object. If not specified, no filtering willbe performed before handling notifications. Parameters: handback - The context to be sent to the listener when anotification is emitted. throws: java.lang.IllegalArgumentException - - Listener parameter is null. |
getNotificationInfo | public MBeanNotificationInfo[] getNotificationInfo()(Code) | | Returns a NotificationInfo object contaning the name of the
Java class of the notification and the notification types sent.
This returns a array of MBeanNotificationInfo whichcontains the notification information. |
removeNotificationListener | public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code) | | Enables a listener for an MBean to be removed.
All couple (listener, handback) are removed.
Parameters: listener - The listener object which will handles notificationsemitted by the registered MBean. throws: ListenerNotFoundException - The listener is not registeredin the MBean. |
sendNotification | public void sendNotification(Notification notif)(Code) | | Enables a MBean to send a notification.
Parameters: notif - - The notification to send. |
|
|