public class BaseAttributeFilter
extends java.lang.Object
implements javax.management.NotificationFilter
Implementation of NotificationFilter for attribute change
notifications. This class is used by BaseModelMBean to
construct attribute change notification event filters when a filter is not
supplied by the application.
| Constructor and Description |
|---|
BaseAttributeFilter(java.lang.String name)
Construct a new filter that accepts only the specified attribute
name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String name)
Add a new attribute name to the set of names accepted by this filter.
|
void |
clear()
Clear all accepted names from this filter, so that it will accept
all attribute names.
|
java.lang.String[] |
getNames()
Return the set of names that are accepted by this filter.
|
boolean |
isNotificationEnabled(javax.management.Notification notification)
Test whether notification enabled for this event.
|
void |
removeAttribute(java.lang.String name)
Remove an attribute name from the set of names accepted by this
filter.
|
public BaseAttributeFilter(java.lang.String name)
name - Name of the attribute to be accepted by this filter, or
null to accept all attribute namespublic void addAttribute(java.lang.String name)
name - Name of the attribute to be acceptedpublic void clear()
public java.lang.String[] getNames()
public boolean isNotificationEnabled(javax.management.Notification notification)
Test whether notification enabled for this event. Return true if:
isNotificationEnabled in interface javax.management.NotificationFilterpublic void removeAttribute(java.lang.String name)
name - Name of the attribute to be removedCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.