public class

MBeanServerNotificationFilter

extends NotificationFilterSupport
java.lang.Object
   ↳ javax.management.NotificationFilterSupport
     ↳ javax.management.relation.MBeanServerNotificationFilter

Class Overview

Filter for 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.

Summary

Public Constructors
MBeanServerNotificationFilter()
Creates a filter selecting all MBeanServerNotification notifications for all ObjectNames.
Public Methods
synchronized void disableAllObjectNames()
Disables any MBeanServerNotification (all ObjectNames are deselected).
synchronized void disableObjectName(ObjectName objectName)
Disables MBeanServerNotifications concerning given ObjectName.
synchronized void enableAllObjectNames()
Enables all MBeanServerNotifications (all ObjectNames are selected).
synchronized void enableObjectName(ObjectName objectName)
Enables MBeanServerNotifications concerning given ObjectName.
synchronized Vector<ObjectName> getDisabledObjectNames()
Gets all the ObjectNames disabled.
synchronized Vector<ObjectName> getEnabledObjectNames()
Gets all the ObjectNames enabled.
synchronized boolean isNotificationEnabled(Notification notif)
Invoked before sending the specified notification to the listener.
[Expand]
Inherited Methods
From class javax.management.NotificationFilterSupport
From class java.lang.Object
From interface javax.management.NotificationFilter

Public Constructors

public MBeanServerNotificationFilter ()

Creates a filter selecting all MBeanServerNotification notifications for all ObjectNames.

Public Methods

public synchronized void disableAllObjectNames ()

Disables any MBeanServerNotification (all ObjectNames are deselected).

public synchronized void disableObjectName (ObjectName objectName)

Disables MBeanServerNotifications concerning given ObjectName.

Parameters
objectName ObjectName no longer of interest
Throws
IllegalArgumentException if the given ObjectName is null

public synchronized void enableAllObjectNames ()

Enables all MBeanServerNotifications (all ObjectNames are selected).

public synchronized void enableObjectName (ObjectName objectName)

Enables MBeanServerNotifications concerning given ObjectName.

Parameters
objectName ObjectName of interest
Throws
IllegalArgumentException if the given ObjectName is null

public synchronized Vector<ObjectName> getDisabledObjectNames ()

Gets all the ObjectNames disabled.

Returns
  • Vector of ObjectNames:

    - null means all ObjectNames are implicitly deselected, except the ObjectNames explicitly selected

    - empty means all ObjectNames are selected, i.e. no ObjectName deselected.

public synchronized Vector<ObjectName> getEnabledObjectNames ()

Gets all the ObjectNames enabled.

Returns
  • Vector of ObjectNames:

    - null means all ObjectNames are implicitly selected, except the ObjectNames explicitly deselected

    - empty means all ObjectNames are deselected, i.e. no ObjectName selected.

public synchronized boolean isNotificationEnabled (Notification notif)

Invoked 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.

Parameters
notif The notification to be sent.
Returns
  • true if the notification has to be sent to the listener, false otherwise.
Throws
IllegalArgumentException if null parameter