public class BaseNotificationBroadcaster
extends java.lang.Object
implements javax.management.NotificationBroadcaster
Implementation of NotificationBroadcaster for attribute
change notifications. This class is used by BaseModelMBean to
handle notifications of attribute change events to interested listeners.
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<org.apache.tomcat.util.modeler.BaseNotificationBroadcasterEntry> |
entries
The set of registered
BaseNotificationBroadcasterEntry
entries. |
| Constructor and Description |
|---|
BaseNotificationBroadcaster() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Add a notification event listener to this MBean.
|
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
Return an
MBeanNotificationInfo object describing the
notifications sent by this MBean. |
void |
removeNotificationListener(javax.management.NotificationListener listener)
Remove a notification event listener from this MBean.
|
void |
sendNotification(javax.management.Notification notification)
Send the specified notification to all interested listeners.
|
protected java.util.ArrayList<org.apache.tomcat.util.modeler.BaseNotificationBroadcasterEntry> entries
BaseNotificationBroadcasterEntry
entries.public void addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws java.lang.IllegalArgumentException
addNotificationListener in interface javax.management.NotificationBroadcasterlistener - Listener that will receive event notificationsfilter - Filter object used to filter event notifications
actually delivered, or null for no filteringhandback - Handback object to be sent along with event
notificationsjava.lang.IllegalArgumentException - if the listener parameter is nullpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
MBeanNotificationInfo object describing the
notifications sent by this MBean.getNotificationInfo in interface javax.management.NotificationBroadcasterpublic void removeNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationBroadcasterlistener - The listener to be removed (any and all registrations
for this listener will be eliminated)javax.management.ListenerNotFoundException - if this listener is not
registered in the MBeanpublic void sendNotification(javax.management.Notification notification)
notification - The notification to be sentCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.