|
JavaTM 2 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 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。