类的用途
javax.management.RuntimeOperationsException
-
RuntimeOperationsException 在 javax.management 中的用法
修饰符和类型方法描述Descriptor.clone()返回等于此描述符的描述符。Descriptor.getFieldValue(String fieldName) 返回特定字段名称的值,如果该名称不存在任何值,则返回 null。booleanDescriptor.isValid()如果所有字段都具有给定名称的合法值,则返回 true。voidPersistentMBean.load()使用在持久存储中为 MBean 找到的数据实例化此 MBean 实例。void设置特定字段名称的值。final void不支持此操作,因为此类是不可变的。void将字段名称数组中的所有字段设置为字段值数组中具有相同索引的新值。final void不支持此操作,因为此类是不可变的。voidPersistentMBean.store()捕获此 MBean 实例的当前状态并将其写出到持久存储。 -
RuntimeOperationsException 在 javax.management.modelmbean 中的用法
修饰符和类型方法描述voidModelMBeanNotificationBroadcaster.addAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback) 将实现 NotificationListener 接口的对象注册为监听。voidRequiredModelMBean.addAttributeChangeNotificationListener(NotificationListener inlistener, String inAttributeName, Object inhandback) DescriptorSupport.clone()返回一个新的描述符,它是描述符的副本。ModelMBeanInfo.getAttribute(String inName) 返回按名称请求的 ModelMBeanAttributeInfo。ModelMBeanInfoSupport.getAttribute(String inName) ModelMBeanInfoSupport.getConstructor(String inName) 返回按名称请求的 ModelMBeanConstructorInfo。ModelMBeanInfo.getDescriptor(String inDescriptorName, String inDescriptorType) 返回由名称和描述符类型请求的描述符。ModelMBeanInfoSupport.getDescriptor(String inDescriptorName) 返回按名称请求的描述符。ModelMBeanInfoSupport.getDescriptor(String inDescriptorName, String inDescriptorType) ModelMBeanInfo.getDescriptors(String inDescriptorType) 返回一个描述符数组,其中包含类型为 inDescriptorType 的 ModelMBeanInfo 的所有描述符。ModelMBeanInfoSupport.getDescriptors(String inDescriptorType) DescriptorSupport.getFieldValue(String fieldName) ModelMBeanInfo.getMBeanDescriptor()返回包含 MBean 范围策略的 ModelMBean 的描述符。ModelMBeanInfo.getNotification(String inName) 返回按名称请求的 ModelMBeanNotificationInfo。ModelMBeanInfoSupport.getNotification(String inName) ModelMBeanInfo.getOperation(String inName) 返回按名称请求的 ModelMBeanOperationInfo。ModelMBeanInfoSupport.getOperation(String inName) booleanDescriptorSupport.isValid()如果所有字段都具有给定名称的合法值,则返回 true。voidRequiredModelMBean.load()使用在持久存储中为 MBean 找到的数据实例化此 MBean 实例。voidModelMBeanNotificationBroadcaster.removeAttributeChangeNotificationListener(NotificationListener listener, String attributeName) 从 RequiredModelMBean 中移除 attributeChangeNotifications 的监听。voidRequiredModelMBean.removeAttributeChangeNotificationListener(NotificationListener inlistener, String inAttributeName) voidModelMBeanNotificationBroadcaster.sendAttributeChangeNotification(AttributeChangeNotification notification) 发送一个 attributeChangeNotification,它被传递给 ModelMBean 上注册的 attributeChangeNotification 监听。voidModelMBeanNotificationBroadcaster.sendAttributeChangeNotification(Attribute oldValue, Attribute newValue) 将包含属性的旧值和新值的 attributeChangeNotification 发送到 ModelMBean 上已注册的 AttributeChangeNotification 监听。voidRequiredModelMBean.sendAttributeChangeNotification(AttributeChangeNotification ntfyObj) voidRequiredModelMBean.sendAttributeChangeNotification(Attribute inOldVal, Attribute inNewVal) voidModelMBeanNotificationBroadcaster.sendNotification(String ntfyText) 发送一个通知,其中包含传递给 ModelMBean 上注册的通知监听的文本字符串。voidModelMBeanNotificationBroadcaster.sendNotification(Notification ntfyObj) 发送通知,该通知作为 jmx.modelmbean.generic 通知传递给 ModelMBean 上已注册的通知监听。voidRequiredModelMBean.sendNotification(String ntfyText) voidRequiredModelMBean.sendNotification(Notification ntfyObj) voidModelMBeanInfo.setDescriptor(Descriptor inDescriptor, String inDescriptorType) 为 ModelMBean 在类型为 inDescriptorType 的信息数组中设置描述符。voidModelMBeanInfoSupport.setDescriptor(Descriptor inDescriptor, String inDescriptorType) voidModelMBeanInfo.setDescriptors(Descriptor[] inDescriptors) 添加或替换 ModelMBeanInfo 中的描述符。voidModelMBeanInfoSupport.setDescriptors(Descriptor[] inDescriptors) voidvoidvoidModelMBean.setManagedResource(Object mr, String mr_type) 设置要针对其执行此 ModelMBean 管理接口(MBeanInfo 和描述符)中的所有方法的对象的实例句柄。voidRequiredModelMBean.setManagedResource(Object mr, String mr_type) 设置要针对其执行此 ModelMBean 管理接口(MBeanInfo 和描述符)中的所有方法的对象的实例句柄。voidModelMBeanInfo.setMBeanDescriptor(Descriptor inDescriptor) 设置 ModelMBean 的描述符。voidModelMBeanInfoSupport.setMBeanDescriptor(Descriptor inMBeanDescriptor) voidModelMBean.setModelMBeanInfo(ModelMBeanInfo inModelMBeanInfo) 使用传入的 ModelMBeanInfo 初始化 ModelMBean 对象。voidRequiredModelMBean.setModelMBeanInfo(ModelMBeanInfo mbi) 使用传入的 ModelMBeanInfo 初始化 ModelMBean 对象。voidRequiredModelMBean.store()捕获此 MBean 实例的当前状态并将其写出到持久存储。修饰符构造方法描述DescriptorSupport(int initNumFields) 描述符构造方法。DescriptorSupport(String inStr) 采用 XML 字符串的描述符构造方法。DescriptorSupport(String[] fieldNames, Object[] fieldValues) 构造方法采用字段名称和字段值。构造一个带有空 ModelMBeanInfo 的RequiredModelMBean。使用传入的 ModelMBeanInfo 构造一个 RequiredModelMBean 对象。