Class: javax.management.relation.MBeanServerNotificationFilter
- @SuppressWarnings(value={"serial"})
- public class MBeanServerNotificationFilter
- extends NotificationFilterSupport
Filter for javax.management.MBeanServerNotification.
This filter filters MBeanServerNotification notifications by
selecting the ObjectNames of interest and the operations (registration,
unregistration, both) of interest (corresponding to notification
types).
The serialVersionUID of this class is 2605900539589789736L.
Inheritance
Superclass tree:- java.lang.Object
- javax.management.NotificationFilterSupport
- javax.management.relation.MBeanServerNotificationFilter
Methods
-
MBeanServerNotificationFiltertop
public MBeanServerNotificationFilter()Creates a filter selecting all MBeanServerNotification notifications for all ObjectNames. -
disableAllObjectNamestop
public synchronized void disableAllObjectNames()Disables any MBeanServerNotification (all ObjectNames are deselected). -
disableObjectNametop
public synchronized void disableObjectName(ObjectName objectName) throws IllegalArgumentExceptionDisables MBeanServerNotifications concerning given ObjectName. -
enableAllObjectNamestop
public synchronized void enableAllObjectNames()Enables all MBeanServerNotifications (all ObjectNames are selected). -
enableObjectNametop
public synchronized void enableObjectName(ObjectName objectName) throws IllegalArgumentExceptionEnables MBeanServerNotifications concerning given ObjectName. -
getDisabledObjectNamestop
public synchronized Vector<ObjectName> getDisabledObjectNames()Gets all the ObjectNames disabled. -
getEnabledObjectNamestop
public synchronized Vector<ObjectName> getEnabledObjectNames()Gets all the ObjectNames enabled. -
isNotificationEnabledtop
public synchronized boolean isNotificationEnabled(Notification notif) throws IllegalArgumentExceptionInvoked before sending the specified notification to the listener.If:
- the ObjectName of the concerned MBean is selected (explicitly OR (implicitly and not explicitly deselected))
AND
- the type of the operation (registration or unregistration) is selected
then the notification is sent to the listener.
- Specified by:
- isNotificationEnabled from NotificationFilter
- Override hierarchy:
- isNotificationEnabled from NotificationFilterSupport
