站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

AttributeChangeNotificationFilter (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


javax.management
Class AttributeChangeNotificationFilter

java.lang.Object
  extended byjavax.management.AttributeChangeNotificationFilter
All Implemented Interfaces:
NotificationFilter, Serializable

public class AttributeChangeNotificationFilter
extends Object
implements NotificationFilter, Serializable

Notification filter support for attribute change notifications.

Version:
$Revision: 1.10 $

Revisions:

20020710 Adrian Brock:

  • Serialization
Author:
Juha Lindfors., a href="mailto:Adrian.Brock@HappeningTimes.com">Adrian Brock
See Also:
AttributeChangeNotification, NotificationFilter, Serialized Form

Constructor Summary
AttributeChangeNotificationFilter()
          Constructs an attribute change notification filter.
 
Method Summary
 void disableAllAttributes()
          Disables all attribute change notifications.
 void disableAttribute(String name)
          Disable the attribute change notifications of the given attribute.
 void enableAttribute(String name)
          Enables the attribute change notifications of the given attribute to be sent to the listener.
 Vector getEnabledAttributes()
          Returns the names of the attributes whose notifications are allowed to pass this filter.
 boolean isNotificationEnabled(Notification notification)
          This method is called before a notification is sent to see whether the listener wants the notification.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeChangeNotificationFilter

public AttributeChangeNotificationFilter()
Constructs an attribute change notification filter. All attribute notifications are filtered by default. Use enableAttribute(java.lang.String) to enable notifications of a given attribute to pass this filter.

Method Detail

isNotificationEnabled

public boolean isNotificationEnabled(Notification notification)
Description copied from interface: NotificationFilter
This method is called before a notification is sent to see whether the listener wants the notification.

Specified by:
isNotificationEnabled in interface NotificationFilter
Parameters:
notification - the notification to be sent.
Returns:
true if the listener wants the notification, false otherwise

enableAttribute

public void enableAttribute(String name)
                     throws IllegalArgumentException
Enables the attribute change notifications of the given attribute to be sent to the listener.

Parameters:
name - name of the management attribute
Throws:
IllegalArgumentException

disableAttribute

public void disableAttribute(String name)
Disable the attribute change notifications of the given attribute. Attribute change notifications for this attribute will not be sent to the listener.

Parameters:
name - name of the management attribute

disableAllAttributes

public void disableAllAttributes()
Disables all attribute change notifications.


getEnabledAttributes

public Vector getEnabledAttributes()
Returns the names of the attributes whose notifications are allowed to pass this filter.

Returns:
a vector containing the name strings of the enabled attributes

toString

public String toString()
Returns:
human readable string.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.