| 
 | 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。