- java.lang.Object
 -  
      
- javax.management.MBeanFeatureInfo
 -  
        
- javax.management.MBeanNotificationInfo
 -  
          
- javax.management.modelmbean.ModelMBeanNotificationInfo
 
 
 
 
-  
       
- 实现的所有接口
 -  
         
Serializable,Cloneable,DescriptorAccess,DescriptorRead 
public class ModelMBeanNotificationInfo extends MBeanNotificationInfo implements DescriptorAccess
ModelMBeanNotificationInfo对象描述ModelMBean发出的通知。 它是MBeanNotificationInfo的子类,添加了关联的Descriptor和Descriptor接口的实现。
描述符中的字段是定义的,但不限于以下内容。 请注意,当此表中的Type为Number时,也可以使用作为Long的十进制表示的String。
ModelMBeanNotificationInfo Fields Name Type Meaning name String Notification name. descriptorType String Must be "notification". severity Number 0-6 where 0: unknown; 1: non-recoverable; 2: critical, failure; 3: major, severe; 4: minor, marginal, error; 5: warning; 6: normal, cleared, informative messageID String Unique key for message text (to allow translation, analysis). messageText String Text of notification. log String T - log message, F - do not log message. logfile String fully qualified file name appropriate for operating system. visibility Number 1-4 where 1: always visible 4: rarely visible. presentationString String XML formatted string to allow presentation of data.默认描述符包含name,descriptorType,displayName和severity(= 6)字段。 name和displayName字段的默认值是Notification类的名称(由ModelMBeanNotificationInfo构造函数的
name参数指定)。此类的serialVersionUID是
-7445681389570207141L。- 从以下版本开始:
 - 1.5
 - 另请参见:
 - Serialized Form
 
 
-  
        
       
-  
             
字段汇总
-  
               
声明的属性在类 javax.management.MBeanFeatureInfo
description, name 
 -  
               
 
-  
             
构造方法摘要
构造方法 构造器 描述 ModelMBeanNotificationInfo(String[] notifTypes, String name, String description)使用默认描述符构造ModelMBeanNotificationInfo对象。ModelMBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)构造ModelMBeanNotificationInfo对象。ModelMBeanNotificationInfo(ModelMBeanNotificationInfo inInfo)从此ModelMBeanNotfication对象构造一个新的ModelMBeanNotificationInfo对象。 
-  
             
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 Objectclone()创建并返回一个新的ModelMBeanNotificationInfo,它是此ModelMBeanNotificationInfo的副本。DescriptorgetDescriptor()返回ModelMBeanNotificationInfo的关联描述符的副本。voidsetDescriptor(Descriptor inDescriptor)为ModelMBeanNotificationInfo设置关联的Descriptor(完全替换)如果新的Descriptor为null,则关联的Descriptor将恢复为默认描述符。StringtoString()返回包含ModelMBeanNotificationInfo的可读字符串。-  
               
声明方法的类 javax.management.MBeanNotificationInfo
equals, getNotifTypes 
-  
               
声明方法的类 javax.management.MBeanFeatureInfo
getDescription, getName 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
ModelMBeanNotificationInfo
public ModelMBeanNotificationInfo(String[] notifTypes, String name, String description)
使用默认描述符构造ModelMBeanNotificationInfo对象。- 参数
 -  
              
notifTypes- 包含可能发出的通知类型的字符串数组(以点表示法)。 -  
              
name- Notification类的名称。 -  
              
description- 通知的人类可读描述。 可选的。 
 
-  
ModelMBeanNotificationInfo
public ModelMBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)
构造ModelMBeanNotificationInfo对象。- 参数
 -  
              
notifTypes- 包含可能发出的通知类型的字符串数组(以点表示法)。 -  
              
name- Notification类的名称。 -  
              
description- 通知的人类可读描述。 可选的。 -  
              
descriptor- 描述符的实例,包含此MBeanNotificationInfo实例的相应元数据。 如果为null,则将创建默认描述符。 如果描述符不包含“displayName”或“severity”字段,则会使用默认值添加缺少的字段。 - 异常
 -  
              
RuntimeOperationsException- 环绕IllegalArgumentException。 描述符无效,或描述符字段“name”不等于参数名称,或描述符字段“descriptorType”不等于“notification”。 
 
-  
ModelMBeanNotificationInfo
public ModelMBeanNotificationInfo(ModelMBeanNotificationInfo inInfo)
从此ModelMBeanNotfication对象构造一个新的ModelMBeanNotificationInfo对象。- 参数
 -  
              
inInfo- 要复制的ModelMBeanNotificationInfo 
 
 -  
 
-  
             
方法详细信息
-  
clone
public Object clone()
创建并返回一个新的ModelMBeanNotificationInfo,它是此ModelMBeanNotificationInfo的副本。- 重写:
 -  
              
clone在类MBeanNotificationInfo - 结果
 - 这个实例的克隆。
 - 另请参见:
 -  
              
Cloneable 
 
-  
getDescriptor
public Descriptor getDescriptor()
返回ModelMBeanNotificationInfo的关联描述符的副本。- Specified by:
 -  
              
getDescriptor在界面DescriptorRead - 重写:
 -  
              
getDescriptor在类MBeanFeatureInfo - 结果
 - 与ModelMBeanNotificationInfo对象关联的描述符。
 - 另请参见:
 -  
              
setDescriptor(javax.management.Descriptor) 
 
-  
setDescriptor
public void setDescriptor(Descriptor inDescriptor)
为ModelMBeanNotificationInfo设置关联的Descriptor(完全替换)如果新的Descriptor为null,则关联的Descriptor将恢复为默认描述符。 描述符在分配之前已经过验证。 如果新描述符无效,则抛出包装IllegalArgumentException的RuntimeOperationsException。- Specified by:
 -  
              
setDescriptor在界面DescriptorAccess - 参数
 -  
              
inDescriptor- 替换与ModelMBeanNotification接口关联的描述符 - 异常
 -  
              
RuntimeOperationsException- 为无效描述符包装IllegalArgumentException。 - 另请参见:
 -  
              
getDescriptor() 
 
 -  
 
 -