javax.management
public class AttributeChangeNotificationFilter extends Object implements NotificationFilter, Serializable
AttributeChangeNotification
s
based on a list of attribute names.Constructor and Description |
---|
AttributeChangeNotificationFilter() |
Modifier and Type | Method and Description |
---|---|
void |
disableAllAttributes()
Blocks all
AttributeChangeNotification s
by emptying the list of enabled attributes. |
void |
disableAttribute(String name)
Removes the specified attribute name from the list
of enabled attributes, thus preventing
AttributeChangeNotification s for this attribute
from passing through the filter. |
void |
enableAttribute(String name)
Adds the specified attribute name to the list
of enabled attributes, thus allowing
AttributeChangeNotification s for this attribute
to pass through the filter. |
Vector<String> |
getEnabledAttributes()
Returns the list of enabled attributes for this
filter.
|
boolean |
isNotificationEnabled(Notification notif)
Returns true if the specified notification is an
AttributeChangeNotification and the name of the
attribute concerned is in the list of enabled attributes
for this filter. |
public AttributeChangeNotificationFilter()
public void disableAllAttributes()
AttributeChangeNotification
s
by emptying the list of enabled attributes.public void disableAttribute(String name)
AttributeChangeNotification
s for this attribute
from passing through the filter. If the attribute is
not enabled, this has no effect.name
- the name of the attribute to disable.public void enableAttribute(String name)
AttributeChangeNotification
s for this attribute
to pass through the filter. If the attribute is
enabled, this has no effect.name
- the name of the attribute to enable.public Vector<String> getEnabledAttributes()
public boolean isNotificationEnabled(Notification notif)
AttributeChangeNotification
and the name of the
attribute concerned is in the list of enabled attributes
for this filter.isNotificationEnabled
in interface NotificationFilter
notif
- the notification being filtered.AttributeChangeNotification
for an
enabled attribute.