|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationFilterSupport javax.management.relation.MBeanServerNotificationFilter
A helper class, used to filter notifications of registration, unregistration of selected object names.
Revisions:
20020711 Adrian Brock:
Constructor Summary | |
MBeanServerNotificationFilter()
Create a filter selecting nothing by default |
Method Summary | |
void |
disableAllObjectNames()
Disable all object names. |
void |
disableObjectName(ObjectName objectName)
Disable an object name. |
void |
enableAllObjectNames()
Enable all object names. |
void |
enableObjectName(ObjectName objectName)
Enable an object name. |
Vector |
getDisabledObjectNames()
Get all the disabled object names. |
Vector |
getEnabledObjectNames()
Get all the enabled object names. |
boolean |
isNotificationEnabled(Notification notification)
Test to see whether this notification is enabled |
String |
toString()
|
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, wait, wait, wait |
Constructor Detail |
public MBeanServerNotificationFilter()
WARNING!! WARNING!! The spec says the MBeanServerNotificationFilter accepts everything by default. The RI does exactly the opposite. I follow the RI.
Method Detail |
public void disableAllObjectNames()
public void disableObjectName(ObjectName objectName) throws IllegalArgumentException
objectName
- the object name to disable.
IllegalArgumentException
- for a null object namepublic void enableAllObjectNames()
public void enableObjectName(ObjectName objectName) throws IllegalArgumentException
objectName
- the object name to enable.
IllegalArgumentException
- for a null object namepublic Vector getDisabledObjectNames()
Returns a vector of disabled object names.
Null for all object names disabled.
An empty vector means all object names enabled.
public Vector getEnabledObjectNames()
Returns a vector of enabled object names.
Null for all object names enabled.
An empty vector means all object names disabled.
public String toString()
toString
in class NotificationFilterSupport
public boolean isNotificationEnabled(Notification notification) throws IllegalArgumentException
isNotificationEnabled
in interface NotificationFilter
isNotificationEnabled
in class NotificationFilterSupport
notification
- the notification to filter
IllegalArgumentException
- for null notification.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |