|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationFilterSupport (src)
javax.management.relation.MBeanServerNotificationFilter
A helper class, used to filter notifications of registration, unregistration of selected object names.
Constructor Summary | |
MBeanServerNotificationFilter()
Create a filter selecting nothing by default |
Method Summary | |
void |
disableAllObjectNames()
Disable all object names. |
void |
disableObjectName(ObjectName (src) objectName)
Disable an object name. |
void |
enableAllObjectNames()
Enable all object names. |
void |
enableObjectName(ObjectName (src) objectName)
Enable an object name. |
java.util.Vector |
getDisabledObjectNames()
Get all the disabled object names. |
java.util.Vector |
getEnabledObjectNames()
Get all the enabled object names. |
boolean |
isNotificationEnabled(Notification (src) notification)
Test to see whether this notification is enabled |
java.lang.String |
toString()
|
Methods inherited from class javax.management.NotificationFilterSupport (src) |
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 (src) objectName) throws java.lang.IllegalArgumentException
objectName
- the object name to disable.
java.lang.IllegalArgumentException
- for a null object namepublic void enableAllObjectNames()
public void enableObjectName(ObjectName (src) objectName) throws java.lang.IllegalArgumentException
objectName
- the object name to enable.
java.lang.IllegalArgumentException
- for a null object namepublic java.util.Vector getDisabledObjectNames()
Returns a vector of disabled object names.
Null for all object names disabled.
An empty vector means all object names enabled.
public java.util.Vector getEnabledObjectNames()
Returns a vector of enabled object names.
Null for all object names enabled.
An empty vector means all object names disabled.
public java.lang.String toString()
toString
in class NotificationFilterSupport (src)
public boolean isNotificationEnabled(Notification (src) notification) throws java.lang.IllegalArgumentException
isNotificationEnabled
in interface NotificationFilter (src)
isNotificationEnabled
in class NotificationFilterSupport (src)
notification
- the notification to filter
java.lang.IllegalArgumentException
- for null notification.
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |