This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.management.relation
class MBeanServerNotificationFilter

java.lang.Object extended by javax.management.NotificationFilterSupport extended by javax.management.relation.MBeanServerNotificationFilter
All Implemented Interfaces:
NotificationFilter

public class MBeanServerNotificationFilter
extends NotificationFilterSupport

Filter for {@link MBeanServerNotification}. This filter filters MBeanServerNotification notifications by selecting the ObjectNames of interest and the operations (registration, unregistration, both) of interest (corresponding to notification types).

The serialVersionUID of this class is 2605900539589789736L.


Constructor Summary

          Creates a filter selecting all MBeanServerNotification notifications for all ObjectNames.
 
Method Summary
 void

          Disables any MBeanServerNotification (all ObjectNames are deselected).
 void

          Disables MBeanServerNotifications concerning given ObjectName.
 void

          Enables all MBeanServerNotifications (all ObjectNames are selected).
 void

          Enables MBeanServerNotifications concerning given ObjectName.
 Vector

          Gets all the ObjectNames disabled.
 Vector

          Gets all the ObjectNames enabled.
 boolean

          Invoked before sending the specified notification to the listener.
 
Methods inherited from class javax.management.NotificationFilterSupport
disableAllTypes, disableType, enableType, getEnabledTypes, isNotificationEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanServerNotificationFilter

public MBeanServerNotificationFilter()
Creates a filter selecting all MBeanServerNotification notifications for all ObjectNames.

Method Detail

disableAllObjectNames

public synchronized void disableAllObjectNames()
Disables any MBeanServerNotification (all ObjectNames are deselected).


disableObjectName

public synchronized void disableObjectName(ObjectName objectName)
                                    throws IllegalArgumentException
Disables MBeanServerNotifications concerning given ObjectName.

Parameters:
objectName - ObjectName no longer of interest
Throws:
IllegalArgumentException - if the given ObjectName is null

enableAllObjectNames

public synchronized void enableAllObjectNames()
Enables all MBeanServerNotifications (all ObjectNames are selected).


enableObjectName

public synchronized void enableObjectName(ObjectName objectName)
                                   throws IllegalArgumentException
Enables MBeanServerNotifications concerning given ObjectName.

Parameters:
objectName - ObjectName of interest
Throws:
IllegalArgumentException - if the given ObjectName is null

getDisabledObjectNames

public synchronized Vector getDisabledObjectNames()
Gets all the ObjectNames disabled.

Returns:
Vector of ObjectNames:

- null means all ObjectNames are implicitly deselected, except the ObjectNames explicitly selected

- empty means all ObjectNames are selected, i.e. no ObjectName deselected.


getEnabledObjectNames

public synchronized Vector getEnabledObjectNames()
Gets all the ObjectNames enabled.

Returns:
Vector of ObjectNames:

- null means all ObjectNames are implicitly selected, except the ObjectNames explicitly deselected

- empty means all ObjectNames are deselected, i.e. no ObjectName selected.


isNotificationEnabled

public synchronized boolean isNotificationEnabled(Notification notif)
                                           throws IllegalArgumentException
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:
notif - The notification to be sent.
Returns:
true if the notification has to be sent to the listener, false otherwise.
Throws:
IllegalArgumentException - if null parameter


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.