| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class MBeanServerNotificationFilter extends NotificationFilterSupport
Filter for {@link 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
.
Constructor Summary | |
---|---|
Creates a filter selecting all MBeanServerNotification notifications for all ObjectNames. |
Method Summary | |
---|---|
void |
Disables any MBeanServerNotification (all ObjectNames are deselected). |
void |
disableObjectName(ObjectName objectName) Disables MBeanServerNotifications concerning given ObjectName. |
void |
Enables all MBeanServerNotifications (all ObjectNames are selected). |
void |
enableObjectName(ObjectName objectName) Enables MBeanServerNotifications concerning given ObjectName. |
Vector |
Gets all the ObjectNames disabled. |
Vector |
Gets all the ObjectNames enabled. |
boolean |
Invoked before sending the specified notification to the listener. |
Methods inherited from class javax.management.NotificationFilterSupport |
---|
disableAllTypes, disableType, enableType, getEnabledTypes, isNotificationEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MBeanServerNotificationFilter()
Method Detail |
---|
public synchronized void disableAllObjectNames()
public synchronized void disableObjectName(ObjectName objectName) throws IllegalArgumentException
objectName
- ObjectName no longer of interestIllegalArgumentException
- if the given ObjectName is nullpublic synchronized void enableAllObjectNames()
public synchronized void enableObjectName(ObjectName objectName) throws IllegalArgumentException
objectName
- ObjectName of interestIllegalArgumentException
- if the given ObjectName is nullpublic synchronized Vector getDisabledObjectNames()
- 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 getEnabledObjectNames()
- 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) throws IllegalArgumentException
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.
isNotificationEnabled
in class NotificationFilterSupport
notif
- The notification to be sent.IllegalArgumentException
- if null parameter
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |