javax.management
Interface NotificationBroadcaster
- All Known Subinterfaces:
- ModelMBean, ModelMBeanNotificationBroadcaster
- All Known Implementing Classes:
- NotificationBroadcasterSupport
- public interface NotificationBroadcaster
Implemented by an MBean
that emits Notification
.
- Version:
- $Revision: 1.4 $
- Author:
- Simone Bordet
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
- Returns the name of the java class of the notification and the
notification types sent.
- Returns:
- MBeanNotificationInfo The NotificationInfo
addNotificationListener
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
- Adds a listener to the registered MBean.
- 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
- 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 ).
- Parameters:
listener
- The NotificationListener
- Throws:
ListenerNotFoundException
- If no such listener exists.
Copyright © 2001-2002 MX4J Team. All Rights Reserved.