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
class AttributeChangeNotificationFilter

java.lang.Object extended by javax.management.AttributeChangeNotificationFilter
All Implemented Interfaces:
NotificationFilter

Most common way to construct:

AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter();

Based on 13 examples


public class AttributeChangeNotificationFilter
extends Object
implements NotificationFilter

This class implements of the {@link javax.management.NotificationFilter NotificationFilter} interface for the {@link javax.management.AttributeChangeNotification attribute change notification}. The filtering is performed on the name of the observed attribute.

It manages a list of enabled attribute names. A method allows users to enable/disable as many attribute names as required.


Constructor Summary

          
 
Method Summary
 void

          Disables all the attribute names.
 void

          Disables all the attribute change notifications the attribute name of which equals the specified attribute name to be sent to the listener.
 void

          Enables all the attribute change notifications the attribute name of which equals the specified name to be sent to the listener.
 Vector

          Gets all the enabled attribute names for this filter.
 boolean

          Invoked before sending the specified notification to the listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeChangeNotificationFilter

public AttributeChangeNotificationFilter()
Method Detail

disableAllAttributes

public synchronized void disableAllAttributes()
Disables all the attribute names.


disableAttribute

public synchronized void disableAttribute(String name)
Disables all the attribute change notifications the attribute name of which equals the specified attribute name to be sent to the listener.
If the specified name is not in the list of enabled attribute names, this method has no effect.

Parameters:
name - The attribute name.

enableAttribute

public synchronized void enableAttribute(String name)
                                  throws IllegalArgumentException
Enables all the attribute change notifications the attribute name of which equals the specified name to be sent to the listener.
If the specified name is already in the list of enabled attribute names, this method has no effect.

Parameters:
name - The attribute name.
Throws:
IllegalArgumentException - The attribute name parameter is null.

getEnabledAttributes

public synchronized Vector getEnabledAttributes()
Gets all the enabled attribute names for this filter.

Returns:
The list containing all the enabled attribute names.

isNotificationEnabled

public synchronized boolean isNotificationEnabled(Notification notification)
Invoked before sending the specified notification to the listener.
This filter compares the attribute name of the specified attribute change notification with each enabled attribute name. If the attribute name equals one of the enabled attribute names, the notification must be sent to the listener and this method returns true.

Parameters:
notification - The attribute change notification to be sent.
Returns:
true if the notification has to be sent to the listener, false otherwise.


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/.