|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NotificationRegistration
This interface specifies the methods to add or to remove a notification listener to an MBean via a MBean server (remote or local).
| Method Summary | |
|---|---|
void |
addNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Adds a listener to a registered MBean. |
void |
removeNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener)
Removes a listener from a registered MBean. |
| Method Detail |
|---|
void addNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.InstanceNotFoundException
name - The objectname of the MBean on which the listener should be added.listener - The listener which will handle the notifications emitted by the registered MBean.filter - The filter used to do filtering. If filter is null, no filtering will be performed before handling notifications.handback - The context to be sent to the listener when a notification is emitted.
javax.management.InstanceNotFoundException - The MBean name provided does not match any of the registered MBeans.
void removeNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener)
throws javax.management.InstanceNotFoundException,
javax.management.ListenerNotFoundException
name - The objectname of the MBean on which the listener should be removed.listener - The listener which will handle the notifications emitted by the registered MBean.
javax.management.InstanceNotFoundException - The MBean name provided does not match any of the registered MBeans.
javax.management.ListenerNotFoundException - The listener is not registered in the MBean.
|
Open Source build 01-ea opendmk-1.0-b01-ea 2010.10.20_19:39:55_UTC |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||