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
- Version:
- $Revision: 1.7 $
- Author:
- Simone Bordet
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(NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
- Description copied from interface:
NotificationBroadcaster
- Adds a listener to the registered MBean.
- Specified by:
addNotificationListener
in interface NotificationBroadcaster
- Following copied from interface:
javax.management.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.- Throws:
java.lang.IllegalArgumentException
- If listener is null.
removeNotificationListener
public void removeNotificationListener(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
- Following copied from interface:
javax.management.NotificationBroadcaster
- Parameters:
listener
- The NotificationListener
- Throws:
ListenerNotFoundException
- If no such listener exists.
getNotificationInfo
public 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
- Following copied from interface:
javax.management.NotificationBroadcaster
- Returns:
- MBeanNotificationInfo The NotificationInfo
sendNotification
public void sendNotification(Notification n)
Copyright © 2001-2002 MX4J Team. All Rights Reserved.