|
DRAFT | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ListenerRegistration
ListenerRegistration defines the methods which clients of the MEJB use to add and remove event listeners.
| Method Summary | |
|---|---|
void |
addNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Add a listener to a registered managed object. |
void |
removeNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener)
Remove a listener from a registered managed object. |
| Method Detail |
|---|
void addNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.InstanceNotFoundException,
java.rmi.RemoteException
name - The name of the managed object on which the listener should be added.listener - The listener object which will handle the notifications emitted by the registered managed object.filter - The filter object. 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 managed object name provided does not match any of the registered managed objects.
RemoteException - A communication exception occurred during the execution of a remote method call
void removeNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener)
throws javax.management.InstanceNotFoundException,
javax.management.ListenerNotFoundException,
java.rmi.RemoteException
name - The name of the managed object on which the listener should be removed.listener - The listener object which will handle the notifications emitted by the registered managed object.
This method will remove all the information related to this listener.
javax.management.InstanceNotFoundException - The managed object name provided does not match any of the registered managed objects.
javax.management.ListenerNotFoundException - The listener is not registered in the managed object.
RemoteException - A communication exception occurred during the execution of a remote method call
|
DRAFT | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.
Generated on 24-November-2009 03:24