|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.management.NotificationFilterSupport
|
+--javax.management.relation.MBeanServerNotificationFilter
This filter allows to filter MBeanServerNotification notifications by selecting the ObjectNames of interest and the operations (registration, unregistration, both) of interest (corresponding to notification types).
| Constructor Summary | |
MBeanServerNotificationFilter()
Creates a filter selecting all MBeanServerNotification notifications for all ObjectNames |
|
| Method Summary | |
void |
disableAllObjectNames()
Disables any MBeanServerNotification (i.e. all ObjectNames deselected) |
void |
disableObjectName(ObjectName objectName)
Disables MBeanServerNotifications concerning given ObjectName. |
void |
enableAllObjectNames()
Enables all MBeanServerNotifications (i.e. all ObjectNames selected) |
void |
enableObjectName(ObjectName objectName)
Enables MBeanServerNotifications concerning given ObjectName. |
java.util.Vector |
getDisabledObjectNames()
Gets all the ObjectNames disabled. |
java.util.Vector |
getEnabledObjectNames()
Gets all the ObjectNames enabled. |
boolean |
isNotificationEnabled(Notification notif)
Invoked before sending the specified notification to the listener. |
| Methods inherited from class javax.management.NotificationFilterSupport |
disableAllTypes, disableType, enableType, getEnabledTypes |
| 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 void disableAllObjectNames()
public void disableObjectName(ObjectName objectName)
throws java.lang.IllegalArgumentException
objectName - ObjectName no longer of interestjava.lang.IllegalArgumentException - if the given ObjectName is nullpublic void enableAllObjectNames()
public void enableObjectName(ObjectName objectName)
throws java.lang.IllegalArgumentException
objectName - ObjectName of interestjava.lang.IllegalArgumentException - if the given ObjectName is nullpublic java.util.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 java.util.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 boolean isNotificationEnabled(Notification notif)
throws java.lang.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 NotificationFilterSupportnotif - The notification to be sent.java.lang.IllegalArgumentException - if null parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||