类的用途
javax.management.MBeanException
使用 MBeanException 的包
包
描述
为 Java 管理扩展提供核心类。
提供 ModelMBean 类的定义。
RMI 连接器是 JMX Remote API 的连接器,它使用 RMI 将客户端请求传输到远程 MBean 服务。
-
MBeanException 在 javax.management 中的用法
修饰符和类型类描述class包装MBeanRegistration接口的 preRegister()、preDeregister() 方法抛出的异常。修饰符和类型方法描述MBeanServer.createMBean(String className, ObjectName name) 在 MBean 服务中实例化和注册 MBean。MBeanServer.createMBean(String className, ObjectName name, Object[] params, String[] signature) 在 MBean 服务中实例化和注册 MBean。MBeanServer.createMBean(String className, ObjectName name, ObjectName loaderName) 在 MBean 服务中实例化和注册 MBean。MBeanServer.createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) 在 MBean 服务中实例化和注册 MBean。MBeanServerConnection.createMBean(String className, ObjectName name) 在 MBean 服务中实例化和注册 MBean。MBeanServerConnection.createMBean(String className, ObjectName name, Object[] params, String[] signature) 在 MBean 服务中实例化和注册 MBean。MBeanServerConnection.createMBean(String className, ObjectName name, ObjectName loaderName) 在 MBean 服务中实例化和注册 MBean。MBeanServerConnection.createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) 在 MBean 服务中实例化和注册 MBean。DynamicMBean.getAttribute(String attribute) 获取 Dynamic MBean 的特定属性的值。MBeanServer.getAttribute(ObjectName name, String attribute) MBeanServerConnection.getAttribute(ObjectName name, String attribute) 获取命名 MBean 的特定属性的值。StandardMBean.getAttribute(String attribute) MBeanServer.instantiate(String className) 使用在 MBean 服务的Class Loader Repository中注册的所有类加载器的列表实例化一个对象。MBeanServer.instantiate(String className, Object[] params, String[] signature) 使用在 MBean 服务Class Loader Repository中注册的所有类加载器的列表实例化一个对象。MBeanServer.instantiate(String className, ObjectName loaderName) 使用由其ObjectName指定的类 Loader 实例化一个对象。MBeanServer.instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) 实例化一个对象。允许在 Dynamic MBean 上调用操作。MBeanServer.invoke(ObjectName name, String operationName, Object[] params, String[] signature) MBeanServerConnection.invoke(ObjectName name, String operationName, Object[] params, String[] signature) 在 MBean 上调用操作。voidPersistentMBean.load()使用在持久存储中为 MBean 找到的数据实例化此 MBean 实例。voidDynamicMBean.setAttribute(Attribute attribute) 设置 Dynamic MBean 的特定属性的值。voidMBeanServer.setAttribute(ObjectName name, Attribute attribute) voidMBeanServerConnection.setAttribute(ObjectName name, Attribute attribute) 设置命名 MBean 的特定属性的值。voidStandardMBean.setAttribute(Attribute attribute) voidPersistentMBean.store()捕获此 MBean 实例的当前状态并将其写出到持久存储。 -
MBeanException 在 javax.management.modelmbean 中的用法
修饰符和类型方法描述voidModelMBeanNotificationBroadcaster.addAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback) 将实现 NotificationListener 接口的对象注册为监听。voidRequiredModelMBean.addAttributeChangeNotificationListener(NotificationListener inlistener, String inAttributeName, Object inhandback) ModelMBeanInfo.getAttribute(String inName) 返回按名称请求的 ModelMBeanAttributeInfo。ModelMBeanInfoSupport.getAttribute(String inName) RequiredModelMBean.getAttribute(String attrName) 返回为此 ModelMBean 定义的特定属性的值。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) ModelMBeanInfo.getMBeanDescriptor()返回包含 MBean 范围策略的 ModelMBean 的描述符。ModelMBeanInfoSupport.getMBeanDescriptor()ModelMBeanInfo.getNotification(String inName) 返回按名称请求的 ModelMBeanNotificationInfo。ModelMBeanInfoSupport.getNotification(String inName) ModelMBeanInfo.getOperation(String inName) 返回按名称请求的 ModelMBeanOperationInfo。ModelMBeanInfoSupport.getOperation(String inName) 在 RequiredModelMBean 上或通过 RequiredModelMBean 调用方法并返回方法执行的结果。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) voidRequiredModelMBean.setAttribute(Attribute attribute) 设置命名 ModelMBean 的特定属性的值。voidModelMBeanInfo.setDescriptor(Descriptor inDescriptor, String inDescriptorType) 为 ModelMBean 在类型为 inDescriptorType 的信息数组中设置描述符。voidModelMBeanInfoSupport.setDescriptor(Descriptor inDescriptor, String inDescriptorType) voidModelMBeanInfo.setDescriptors(Descriptor[] inDescriptors) 添加或替换 ModelMBeanInfo 中的描述符。voidModelMBeanInfoSupport.setDescriptors(Descriptor[] inDescriptors) voidModelMBean.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 字符串的描述符构造方法。构造一个带有空 ModelMBeanInfo 的RequiredModelMBean。使用传入的 ModelMBeanInfo 构造一个 RequiredModelMBean 对象。 -
MBeanException 在 javax.management.remote.rmi 中的用法
修饰符和类型方法描述RMIConnection.createMBean(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject) RMIConnection.createMBean(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject) RMIConnection.createMBean(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject) RMIConnection.createMBean(String className, ObjectName name, Subject delegationSubject) RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5) RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, MarshalledObject $param_MarshalledObject_4, String[] $param_arrayOf_String_5, Subject $param_Subject_6) RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, Subject $param_Subject_4) RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3) RMIConnectionImpl.createMBean(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject) RMIConnectionImpl.createMBean(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject) RMIConnectionImpl.createMBean(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject) RMIConnectionImpl.createMBean(String className, ObjectName name, Subject delegationSubject) RMIConnection.getAttribute(ObjectName name, String attribute, Subject delegationSubject) RMIConnectionImpl_Stub.getAttribute(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3) RMIConnectionImpl.getAttribute(ObjectName name, String attribute, Subject delegationSubject) RMIConnection.invoke(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject) RMIConnectionImpl_Stub.invoke(ObjectName $param_ObjectName_1, String $param_String_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5) RMIConnectionImpl.invoke(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject) voidRMIConnection.setAttribute(ObjectName name, MarshalledObject attribute, Subject delegationSubject) voidRMIConnectionImpl_Stub.setAttribute(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3) voidRMIConnectionImpl.setAttribute(ObjectName name, MarshalledObject attribute, Subject delegationSubject)