|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationFilterSupport
javax.management.relation.MBeanServerNotificationFilter
public class MBeanServerNotificationFilter
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).
| Constructor Summary | |
|---|---|
MBeanServerNotificationFilter()
Creates a filter selecting all MBeanServerNotification notifications for all ObjectNames. |
|
| Method Summary | |
|---|---|
void |
disableAllObjectNames()
Disables any MBeanServerNotification (all ObjectNames are deselected). |
void |
disableObjectName(ObjectName theObjName)
Disables MBeanServerNotifications concerning given ObjectName. |
void |
enableAllObjectNames()
Enables all MBeanServerNotifications (all ObjectNames are selected). |
void |
enableObjectName(ObjectName theObjName)
Enables MBeanServerNotifications concerning given ObjectName. |
Vector |
getDisabledObjectNames()
Gets all the ObjectNames disabled. |
Vector |
getEnabledObjectNames()
Gets all the ObjectNames enabled. |
boolean |
isNotificationEnabled(Notification theNtf)
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 theObjName)
throws IllegalArgumentException
theObjName - ObjectName no longer of interest
IllegalArgumentException - if the given ObjectName is nullpublic void enableAllObjectNames()
public void enableObjectName(ObjectName theObjName)
throws IllegalArgumentException
theObjName - ObjectName of interest
IllegalArgumentException - if the given ObjectName is nullpublic 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 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 theNtf)
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 interface NotificationFilterisNotificationEnabled in class NotificationFilterSupporttheNtf - The notification to be sent.
IllegalArgumentException - if null parameter
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.