| |
|
| java.lang.Object javax.management.NotificationFilterSupport javax.management.relation.MBeanServerNotificationFilter
MBeanServerNotificationFilter | public class MBeanServerNotificationFilter extends NotificationFilterSupport (Code) | | 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).
|
Method Summary | |
public void | disableAllObjectNames() Disables any MBeanServerNotification (i.e. | public void | disableObjectName(ObjectName theObjName) Disables MBeanServerNotifications concerning given ObjectName. | public void | enableAllObjectNames() Enables all MBeanServerNotifications (i.e. | public void | enableObjectName(ObjectName theObjName) Enables MBeanServerNotifications concerning given ObjectName. | public Vector | getDisabledObjectNames() Gets all the ObjectNames disabled.
Vector of ObjectNames:-null means all ObjectNames are implicitly deselected,except the ObjectNames explicitly selected-empty means all ObjectNames are selected, i.e. | public Vector | getEnabledObjectNames() Gets all the ObjectNames enabled.
Vector of ObjectNames:-null means all ObjectNames are implicitly selected,except the ObjectNames explicitly deselected- empty means all ObjectNames are deselected, i.e. | public boolean | isNotificationEnabled(Notification theNtf) Invoked before sending the specified notification to the listener.
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.
Overrides:
isNotificationEnabled in class NotificationFilterSupport
Parameters: theNtf - - The notification to be sent. |
MBeanServerNotificationFilter | public MBeanServerNotificationFilter()(Code) | | Creates a filter selecting all MBeanServerNotification notifications for
all ObjectNames
|
disableAllObjectNames | public void disableAllObjectNames()(Code) | | Disables any MBeanServerNotification (i.e. all ObjectNames deselected)
|
enableAllObjectNames | public void enableAllObjectNames()(Code) | | Enables all MBeanServerNotifications (i.e. all ObjectNames selected)
|
getDisabledObjectNames | public Vector getDisabledObjectNames()(Code) | | Gets all the ObjectNames disabled.
Vector of ObjectNames:-null means all ObjectNames are implicitly deselected,except the ObjectNames explicitly selected-empty means all ObjectNames are selected, i.e. noObjectName deselected. |
getEnabledObjectNames | public Vector getEnabledObjectNames()(Code) | | Gets all the ObjectNames enabled.
Vector of ObjectNames:-null means all ObjectNames are implicitly selected,except the ObjectNames explicitly deselected- empty means all ObjectNames are deselected, i.e. noObjectName selected. |
isNotificationEnabled | public boolean isNotificationEnabled(Notification theNtf) throws IllegalArgumentException(Code) | | Invoked before sending the specified notification to the listener.
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.
Overrides:
isNotificationEnabled in class NotificationFilterSupport
Parameters: theNtf - - The notification to be sent. true if the notification has to be sent to the listener, false otherwise. exception: java.lang.IllegalArgumentException - - if null parameter |
|
|
|