|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NotificationBroadcaster
This interface must be implemented by all MBeans that emit notifications.
New code should implement the NotificationEmitter interface
NotificationListener,
NotificationFilter,
NotificationEmitter| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
Add a listener to an MBean. |
MBeanNotificationInfo[] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
void |
removeNotificationListener(NotificationListener listener)
Removes a listener from an MBean. |
| Method Detail |
|---|
void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws IllegalArgumentException
listener - implementation of the listener objectfilter - implementation of the filter object or null
if no filtering is requiredhandback - A handback object associated with each notification
sent by this notification broadcaster.
IllegalArgumentException - if listener is null
void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
listener - the listener object to remove
ListenerNotFoundException - if the listener was not foundMBeanNotificationInfo[] getNotificationInfo()
MBeanNotificationInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||