|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.management.AttributeChangeNotificationFilter
public class AttributeChangeNotificationFilter
此类实现 attribute change notification 的 NotificationFilter 接口。根据所观察属性的名称进行过滤。
它管理已启用的属性名称列表。方法允许用户启用/禁用所需数量的属性名称。
| 构造方法摘要 | |
|---|---|
AttributeChangeNotificationFilter()
|
|
| 方法摘要 | |
|---|---|
void |
disableAllAttributes()
禁用所有属性名称。 |
void |
disableAttribute(String name)
禁用所有属性更改通知,这些通知的属性名称等于要发送到侦听器的指定属性名称。 |
void |
enableAttribute(String name)
启用所有属性更改通知,这些通知的属性名称等于要发送到侦听器的指定名称。 |
Vector<String> |
getEnabledAttributes()
获得此过滤器的所有已启用属性名称。 |
boolean |
isNotificationEnabled(Notification notification)
向侦听器发送指定的通知之前调用。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public AttributeChangeNotificationFilter()
| 方法详细信息 |
|---|
public boolean isNotificationEnabled(Notification notification)
true。
NotificationFilter 中的 isNotificationEnablednotification - 要发送的属性更改通知。
true;否则返回 false。
public void enableAttribute(String name)
throws IllegalArgumentException
name - 属性名称。
IllegalArgumentException - 如果属性名称的参数为 null。public void disableAttribute(String name)
name - 属性名称。public void disableAllAttributes()
public Vector<String> getEnabledAttributes()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。