|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.management.MBeanFeatureInfo
javax.management.MBeanNotificationInfo
javax.management.modelmbean.ModelMBeanNotificationInfo
public class ModelMBeanNotificationInfo
ModelMBeanNotificationInfo 物件描述了由 ModelMBean 發出的通知。它是 MBeanNotificationInfo 的一個子類別,添加了關聯的 Descriptor 和 Descriptor 介面的實作
描述符中的欄位定義如下,但不限於此:
name :通知名稱
descriptorType :必須為 "notification"
severity :0-6,其中 0:未知;1:不可恢復的;
2: 關鍵的,失敗;3:主要的,嚴重的;
4: 次要的,邊緣的,錯誤;5:警告:
6: 正常的、清楚的、豐富的
messageID :訊息文本的唯一鍵(允許轉換,分析)
messageText :通知文本
log :T - 記錄訊息 F - 不記錄訊息
logfile :字元串完全限定檔案名,適用於:作業系統
visibility :1-4,其中 1:總是可見 4:幾乎不可見
presentationString :允許資料呈現的 xml 格式的字元串
預設的描述符包含 name、descriptorType、displayName 和 severity(=6) 欄位。
此類別的 serialVersionUID 為 -7445681389570207141L。
| 欄位摘要 |
|---|
| 從類別 javax.management.MBeanFeatureInfo 繼承的欄位 |
|---|
description, name |
| 建構子摘要 | |
|---|---|
ModelMBeanNotificationInfo(ModelMBeanNotificationInfo inInfo)
從此 ModelMBeanNotfication Object 建構新 ModelMBeanNotificationInfo 物件。 |
|
ModelMBeanNotificationInfo(String[] notifTypes,
String name,
String description)
建構帶有預設描述符的 ModelMBeanNotificationInfo 物件。 |
|
ModelMBeanNotificationInfo(String[] notifTypes,
String name,
String description,
Descriptor descriptor)
建構 ModelMBeanNotificationInfo 物件。 |
|
| 方法摘要 | |
|---|---|
Object |
clone()
創建並返回新 ModelMBeanNotificationInfo,它是此 ModelMBeanNotificationInfo 的副本。 |
Descriptor |
getDescriptor()
返回 ModelMBeanNotificationInfo 的關聯 Descriptor 的副本。 |
void |
setDescriptor(Descriptor inDescriptor)
設置 ModelMBeanNotificationInfo 的關聯 Descriptor(完全替換)。 |
String |
toString()
返回包含 ModelMBeanNotificationInfo 的可讀字元串。 |
| 從類別 javax.management.MBeanNotificationInfo 繼承的方法 |
|---|
equals, getNotifTypes, hashCode |
| 從類別 javax.management.MBeanFeatureInfo 繼承的方法 |
|---|
getDescription, getName |
| 從類別 java.lang.Object 繼承的方法 |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public ModelMBeanNotificationInfo(String[] notifTypes,
String name,
String description)
notifTypes - 套件含可以發送的通知型別的字元串(以點表示法)陣列。name - Notification 類別的名稱。description - Notification 的可讀描述。可選的。
public ModelMBeanNotificationInfo(String[] notifTypes,
String name,
String description,
Descriptor descriptor)
notifTypes - 套件含可以發送的通知型別的字元串(以點表示法)陣列。name - Notification 類別的名稱。description - Notification 的可讀描述。可選的。descriptor - 套件含此 MBeanNotificationInfo 的實例的適當元資料的 Descriptor 實例。如果它為 null,則將創建預設描述符。如果描述符不包含 "displayName" 或 "severity" 欄位,則以預設值將這些欄位添加到描述符中。
RuntimeOperationsException - 套件裝了一個 IllegalArgumentException。描述符無效,或者描述符 "name" 欄位不等於參數名稱,或者描述符 "DescriptorType" 欄位不等於 "notification"。public ModelMBeanNotificationInfo(ModelMBeanNotificationInfo inInfo)
inInfo - 要被複製的 ModelMBeanNotificationInfo| 方法詳細資訊 |
|---|
public Object clone()
MBeanNotificationInfo 中的 cloneCloneablepublic Descriptor getDescriptor()
DescriptorRead 中的 getDescriptorMBeanFeatureInfo 中的 getDescriptorsetDescriptor(javax.management.Descriptor)public void setDescriptor(Descriptor inDescriptor)
DescriptorAccess 中的 setDescriptorinDescriptor - 替換與 ModelMBeanNotification 介面關聯的 Descriptor
RuntimeOperationsException - 套件裝了無效 Descriptor 的 IllegalArgumentException。getDescriptor()public String toString()
MBeanNotificationInfo 中的 toString
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。