接口的使用
javax.management.Descriptor
使用 Descriptor 的包
包
描述
为 Java 管理扩展提供核心类。
提供 ModelMBean 类的定义。
提供开放数据类型和 Open MBean 描述符类。
-
Descriptor 在 javax.management 中的用法
javax.management 中实现 Descriptor 的类javax.management 中返回 Descriptor 的方法修饰符和类型方法描述ImmutableDescriptor.clone()返回等于此描述符的描述符。DescriptorRead.getDescriptor()返回 Descriptor 的副本。MBeanFeatureInfo.getDescriptor()返回特征的描述符。MBeanInfo.getDescriptor()获取此 MBeanInfo 的描述符。javax.management 中的方法,参数类型为 Descriptor修饰符和类型方法描述voidDescriptorAccess.setDescriptor(Descriptor inDescriptor) 设置描述符(完全替换)。static ImmutableDescriptorImmutableDescriptor.union(Descriptor... descriptors) 返回一个ImmutableDescriptor,其内容是给定描述符的并集。javax.management 中的构造函数,参数类型为 Descriptor修饰符构造方法描述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对象. -
Descriptor 在 javax.management.modelmbean 中的用法
修饰符和类型方法描述ModelMBeanAttributeInfo.getDescriptor()获取 ModelMBeanAttributeInfo 的关联 Descriptor 的副本。ModelMBeanConstructorInfo.getDescriptor()返回关联描述符的副本。ModelMBeanInfo.getDescriptor(String inDescriptorName, String inDescriptorType) 返回由名称和描述符类型请求的描述符。ModelMBeanInfoSupport.getDescriptor()ModelMBeanInfoSupport.getDescriptor(String inDescriptorName) 返回按名称请求的描述符。ModelMBeanInfoSupport.getDescriptor(String inDescriptorName, String inDescriptorType) ModelMBeanNotificationInfo.getDescriptor()返回 ModelMBeanNotificationInfo 的关联描述符的副本。ModelMBeanOperationInfo.getDescriptor()返回 ModelMBeanOperationInfo 的关联描述符的副本。ModelMBeanInfo.getDescriptors(String inDescriptorType) 返回一个描述符数组,其中包含类型为 inDescriptorType 的 ModelMBeanInfo 的所有描述符。ModelMBeanInfoSupport.getDescriptors(String inDescriptorType) ModelMBeanInfo.getMBeanDescriptor()返回包含 MBean 范围策略的 ModelMBean 的描述符。ModelMBeanInfoSupport.getMBeanDescriptor()javax.management.modelmbean 中的方法,参数类型为 Descriptor修饰符和类型方法描述voidModelMBeanAttributeInfo.setDescriptor(Descriptor inDescriptor) 为 ModelMBeanAttributeDescriptor 设置关联的描述符(完全替换)。voidModelMBeanConstructorInfo.setDescriptor(Descriptor inDescriptor) 设置 ModelMBeanConstructorInfo 的关联描述符(完全替换)。voidModelMBeanInfo.setDescriptor(Descriptor inDescriptor, String inDescriptorType) 为 ModelMBean 在类型为 inDescriptorType 的信息数组中设置描述符。voidModelMBeanInfoSupport.setDescriptor(Descriptor inDescriptor, String inDescriptorType) voidModelMBeanNotificationInfo.setDescriptor(Descriptor inDescriptor) 为 ModelMBeanNotificationInfo 设置关联的描述符(完全替换)如果新的描述符为空,则关联的描述符将恢复为默认描述符。voidModelMBeanOperationInfo.setDescriptor(Descriptor inDescriptor) 为 ModelMBeanOperationInfo 设置关联的描述符(完全替换)如果新的描述符为空,则关联的描述符将恢复为默认描述符。voidModelMBeanInfo.setDescriptors(Descriptor[] inDescriptors) 添加或替换 ModelMBeanInfo 中的描述符。voidModelMBeanInfoSupport.setDescriptors(Descriptor[] inDescriptors) voidModelMBeanInfo.setMBeanDescriptor(Descriptor inDescriptor) 设置 ModelMBean 的描述符。voidModelMBeanInfoSupport.setMBeanDescriptor(Descriptor inMBeanDescriptor) javax.management.modelmbean 中的构造函数,参数类型为 Descriptor修饰符构造方法描述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 对象。 -
Descriptor 在 javax.management.openmbean 中的用法
javax.management.openmbean 中的构造函数,参数类型为 Descriptor修饰符构造方法描述OpenMBeanAttributeInfoSupport(String name, String description, OpenType<?> openType, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor) 构造一个OpenMBeanAttributeInfoSupport实例,它描述具有指定name、openType、description、读/写访问属性和Descriptor的打开 MBean 的属性。OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, Descriptor descriptor) 构造一个OpenMBeanConstructorInfoSupport实例,它描述了具有指定name、description、signature和descriptor的开放式 MBean 类的构造函数。OpenMBeanInfoSupport(String className, String description, OpenMBeanAttributeInfo[] openAttributes, OpenMBeanConstructorInfo[] openConstructors, OpenMBeanOperationInfo[] openOperations, MBeanNotificationInfo[] notifications, Descriptor descriptor) 构造一个OpenMBeanInfoSupport实例,它描述了一类具有指定className、description、openAttributes、openConstructors、openOperations、notifications和descriptor的开放式 MBean。OpenMBeanOperationInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, OpenType<?> returnOpenType, int impact, Descriptor descriptor) 构造一个OpenMBeanOperationInfoSupport实例,它描述了一类开放 MBean 的操作,具有指定的name、description、signature、returnOpenType、impact和descriptor。OpenMBeanParameterInfoSupport(String name, String description, OpenType<?> openType, Descriptor descriptor) 构造一个OpenMBeanParameterInfoSupport实例,它描述了一个或多个操作或一类开放 MBean 的构造函数中使用的参数,具有指定的name、openType、description和descriptor。