JavaTM 2 Platform
Standard Ed. 6

接口 javax.management.Descriptor
的使用

使用 Descriptor 的软件包
javax.management 提供 Java Management Extensions 的核心类。 
javax.management.modelmbean 提供了 ModelMBean 类的定义。 
javax.management.openmbean 提供开放数据类型和 Open MBean 描述符类。 
 

javax.managementDescriptor 的使用
 

实现 Descriptorjavax.management 中的类
 class ImmutableDescriptor
          不可变的描述符。
 

返回 Descriptorjavax.management 中的方法
 Descriptor ImmutableDescriptor.clone()
          返回一个与此描述符相等的描述符。
 Descriptor DescriptorRead.getDescriptor()
          返回 Descriptor 的副本。
 Descriptor MBeanFeatureInfo.getDescriptor()
          返回该功能的描述符。
 Descriptor MBeanInfo.getDescriptor()
          获取此 MBean 的描述符。
 

参数类型为 Descriptorjavax.management 中的方法
 void DescriptorAccess.setDescriptor(Descriptor inDescriptor)
          设置 Descriptor(完全替换)。
static ImmutableDescriptor ImmutableDescriptor.union(Descriptor... descriptors)
          返回一个 ImmutableDescriptor,其内容是给定描述符的并集。
 

参数类型为 Descriptorjavax.management 中的构造方法
MBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor)
          构造一个 MBeanAttributeInfo 对象。
MBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature, Descriptor descriptor)
          构造一个 MBeanConstructorInfo 对象。
MBeanFeatureInfo(String name, String description, Descriptor descriptor)
          构造一个 MBeanFeatureInfo 对象。
MBeanInfo(String className, String description, MBeanAttributeInfo[] attributes, MBeanConstructorInfo[] constructors, MBeanOperationInfo[] operations, MBeanNotificationInfo[] notifications, Descriptor descriptor)
          构造一个 MBeanInfo
MBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)
          构造一个 MBeanNotificationInfo 对象。
MBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact, Descriptor descriptor)
          构造一个 MBeanOperationInfo 对象。
MBeanParameterInfo(String name, String type, String description, Descriptor descriptor)
          构造一个 MBeanParameterInfo 对象。
 

javax.management.modelmbeanDescriptor 的使用
 

实现 Descriptorjavax.management.modelmbean 中的类
 class DescriptorSupport
          此类表示 ModelMBean 元素的元数据集。
 

返回 Descriptorjavax.management.modelmbean 中的方法
 Descriptor ModelMBeanAttributeInfo.getDescriptor()
          获取 ModelMBeanAttributeInfo 的关联 Descriptor 的副本。
 Descriptor ModelMBeanConstructorInfo.getDescriptor()
          返回关联 Descriptor 的副本。
 Descriptor ModelMBeanInfoSupport.getDescriptor()
           
 Descriptor ModelMBeanNotificationInfo.getDescriptor()
          返回 ModelMBeanNotificationInfo 的关联 Descriptor 的副本。
 Descriptor ModelMBeanOperationInfo.getDescriptor()
          返回 ModelMBeanOperationInfo 的关联 Descriptor 的副本。
 Descriptor ModelMBeanInfoSupport.getDescriptor(String inDescriptorName)
          返回通过名称请求的 Descriptor。
 Descriptor ModelMBeanInfo.getDescriptor(String inDescriptorName, String inDescriptorType)
          返回通过 name 和 descriptorType 请求的 Descriptor。
 Descriptor ModelMBeanInfoSupport.getDescriptor(String inDescriptorName, String inDescriptorType)
           
 Descriptor[] ModelMBeanInfo.getDescriptors(String inDescriptorType)
          返回由 inDescriptorType 类型的 ModelMBeanInfo 的所有 Descriptor 组成的 Descriptor 数组。
 Descriptor[] ModelMBeanInfoSupport.getDescriptors(String inDescriptorType)
           
 Descriptor ModelMBeanInfo.getMBeanDescriptor()
          返回包含 MBean 级策略的 ModelMBean 的描述符。
 Descriptor ModelMBeanInfoSupport.getMBeanDescriptor()
           
 

参数类型为 Descriptorjavax.management.modelmbean 中的方法
 void ModelMBeanAttributeInfo.setDescriptor(Descriptor inDescriptor)
          设置 ModelMBeanAttributeDescriptor 的关联 Descriptor(完全取代)。
 void ModelMBeanConstructorInfo.setDescriptor(Descriptor inDescriptor)
          设置 ModelMBeanConstructorInfo 的关联 Descriptor(完全替换)。
 void ModelMBeanNotificationInfo.setDescriptor(Descriptor inDescriptor)
          设置 ModelMBeanNotificationInfo 的关联 Descriptor(完全替换)。
 void ModelMBeanOperationInfo.setDescriptor(Descriptor inDescriptor)
          设置 ModelMBeanOperationInfo 的关联 Descriptor(完全取代)。
 void ModelMBeanInfo.setDescriptor(Descriptor inDescriptor, String inDescriptorType)
          设置 inDescriptorType 类型的 ModelMBean 的 info 数组中的描述符。
 void ModelMBeanInfoSupport.setDescriptor(Descriptor inDescriptor, String inDescriptorType)
           
 void ModelMBeanInfo.setDescriptors(Descriptor[] inDescriptors)
          添加或替换 ModelMBeanInfo 中的描述符。
 void ModelMBeanInfoSupport.setDescriptors(Descriptor[] inDescriptors)
           
 void ModelMBeanInfo.setMBeanDescriptor(Descriptor inDescriptor)
          设置 ModelMBean 的描述符。
 void ModelMBeanInfoSupport.setMBeanDescriptor(Descriptor inMBeanDescriptor)
           
 

参数类型为 Descriptorjavax.management.modelmbean 中的构造方法
ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter, Descriptor descriptor)
          构造 ModelMBeanAttributeInfo 对象。
ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor)
          构造具有默认描述符的 ModelMBeanAttributeInfo 对象。
ModelMBeanConstructorInfo(String description, Constructor constructorMethod, Descriptor descriptor)
          构造 ModelMBeanConstructorInfo 对象。
ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature, Descriptor descriptor)
          构造 ModelMBeanConstructorInfo 对象。
ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications, Descriptor mbeandescriptor)
          创建带有所提供的信息和参数中给出的描述符的 ModelMBeanInfoSupport。
ModelMBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)
          构造 ModelMBeanNotificationInfo 对象。
ModelMBeanOperationInfo(String description, Method operationMethod, Descriptor descriptor)
          构造 ModelMBeanOperationInfo 对象。
ModelMBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact, Descriptor descriptor)
          构造 ModelMBeanOperationInfo 对象。
 

javax.management.openmbeanDescriptor 的使用
 

参数类型为 Descriptorjavax.management.openmbean 中的构造方法
OpenMBeanAttributeInfoSupport(String name, String description, OpenType<?> openType, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor)
          构造一个 OpenMBeanAttributeInfoSupport 实例,该实例使用指定的 nameopenTypedescription、读/写访问属性和 Descriptor 来描述 open MBean 的属性。
OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, Descriptor descriptor)
          构造一个 OpenMBeanConstructorInfoSupport 实例,该实例使用指定的 namedescriptionsignaturedescriptor 来描述 open MBean 类的构造方法。
OpenMBeanInfoSupport(String className, String description, OpenMBeanAttributeInfo[] openAttributes, OpenMBeanConstructorInfo[] openConstructors, OpenMBeanOperationInfo[] openOperations, MBeanNotificationInfo[] notifications, Descriptor descriptor)
          构造一个 OpenMBeanInfoSupport 实例,它使用指定的 classNamedescriptionopenAttributesopenConstructorsopenOperationsnotificationsdescriptor 描述 open MBeans 的类
OpenMBeanOperationInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, OpenType<?> returnOpenType, int impact, Descriptor descriptor)
          构造一个 OpenMBeanOperationInfoSupport 实例,该实例使用指定的 namedescriptionsignaturereturnOpenTypeimpactdescriptor 来描述 open MBean 类的操作。
OpenMBeanParameterInfoSupport(String name, String description, OpenType<?> openType, Descriptor descriptor)
          构造一个 OpenMBeanParameterInfoSupport 实例,该实例使用指定的 nameopenTypedescriptiondescriptor 描述用于 open MBeans 的类的一个或多个操作或构造方法的参数。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only