JavaTM 2 Platform
Standard Ed. 6

类 javax.management.MBeanException
的使用

使用 MBeanException 的软件包
javax.management 提供 Java Management Extensions 的核心类。 
javax.management.modelmbean 提供了 ModelMBean 类的定义。 
javax.management.remote.rmi RMI 连接器是供 JMX Remote API 使用的一种连接器,后者使用 RMI 将客户端请求传输到远程 MBean 服务器。 
 

javax.managementMBeanException 的使用
 

javax.managementMBeanException 的子类
 class MBeanRegistrationException
          包装由 MBeanRegistration 接口的 preRegister() 和 preDeregister() 方法所抛出的异常。
 

抛出 MBeanExceptionjavax.management 中的方法
 ObjectInstance MBeanServer.createMBean(String className, ObjectName name)
           
 ObjectInstance MBeanServerConnection.createMBean(String className, ObjectName name)
          在 MBean 服务器中实例化并注册一个 MBean。
 ObjectInstance MBeanServer.createMBean(String className, ObjectName name, Object[] params, String[] signature)
           
 ObjectInstance MBeanServerConnection.createMBean(String className, ObjectName name, Object[] params, String[] signature)
          在 MBean 服务器中实例化并注册一个 MBean。
 ObjectInstance MBeanServer.createMBean(String className, ObjectName name, ObjectName loaderName)
           
 ObjectInstance MBeanServerConnection.createMBean(String className, ObjectName name, ObjectName loaderName)
          在 MBean 服务器中实例化并注册一个 MBean。
 ObjectInstance MBeanServer.createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature)
           
 ObjectInstance MBeanServerConnection.createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature)
          在 MBean 服务器中实例化并注册一个 MBean。
 Object MBeanServer.getAttribute(ObjectName name, String attribute)
           
 Object MBeanServerConnection.getAttribute(ObjectName name, String attribute)
          获得指定 MBean 的特定属性值。
 Object DynamicMBean.getAttribute(String attribute)
          获得 Dynamic MBean 的特定属性的值。
 Object StandardMBean.getAttribute(String attribute)
           
 Object MBeanServer.instantiate(String className)
          使用 MBean 服务器的 Class Loader Repository 中所有已注册的类加载器列表实例化一个对象。
 Object MBeanServer.instantiate(String className, Object[] params, String[] signature)
          使用 MBean 服务器的 Class Loader Repository 中所有已注册的类加载器列表来实例化一个对象。
 Object MBeanServer.instantiate(String className, ObjectName loaderName)
          使用由某个对象的 ObjectName 指定的类加载器来实例化该对象。
 Object MBeanServer.instantiate(String className, ObjectName loaderName, Object[] params, String[] signature)
          实例化一个对象。
 Object MBeanServer.invoke(ObjectName name, String operationName, Object[] params, String[] signature)
           
 Object MBeanServerConnection.invoke(ObjectName name, String operationName, Object[] params, String[] signature)
          在 MBean 上调用某个操作。
 Object DynamicMBean.invoke(String actionName, Object[] params, String[] signature)
          允许在 Dynamic MBean 上调用某个操作。
 Object StandardMBean.invoke(String actionName, Object[] params, String[] signature)
           
 void PersistentMBean.load()
          使用持久存储中找到的 MBean 的数据实例化此 MBean 实例。
 void DynamicMBean.setAttribute(Attribute attribute)
          设置 Dynamic MBean 的特定属性的值。
 void StandardMBean.setAttribute(Attribute attribute)
           
 void MBeanServer.setAttribute(ObjectName name, Attribute attribute)
           
 void MBeanServerConnection.setAttribute(ObjectName name, Attribute attribute)
          设置指定 MBean 的特定属性值。
 void PersistentMBean.store()
          捕获此 MBean 实例的当前状态并将其写出到持久存储中。
 

javax.management.modelmbeanMBeanException 的使用
 

抛出 MBeanExceptionjavax.management.modelmbean 中的方法
 void ModelMBeanNotificationBroadcaster.addAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback)
          注册一个将 NotificationListener 接口实现为侦听器的对象。
 void RequiredModelMBean.addAttributeChangeNotificationListener(NotificationListener inlistener, String inAttributeName, Object inhandback)
           
 ModelMBeanAttributeInfo ModelMBeanInfo.getAttribute(String inName)
          返回通过名称请求的 ModelMBeanAttributeInfo。
 ModelMBeanAttributeInfo ModelMBeanInfoSupport.getAttribute(String inName)
           
 Object RequiredModelMBean.getAttribute(String attrName)
          返回为此 ModelMBean 定义的指定属性的值。
 ModelMBeanConstructorInfo ModelMBeanInfoSupport.getConstructor(String inName)
          返回通过名称请求的 ModelMBeanConstructorInfo。
 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()
           
 ModelMBeanNotificationInfo ModelMBeanInfo.getNotification(String inName)
          返回通过名称请求的 ModelMBeanNotificationInfo。
 ModelMBeanNotificationInfo ModelMBeanInfoSupport.getNotification(String inName)
           
 ModelMBeanOperationInfo ModelMBeanInfo.getOperation(String inName)
          返回通过名称请求的 ModelMBeanOperationInfo。
 ModelMBeanOperationInfo ModelMBeanInfoSupport.getOperation(String inName)
           
 Object RequiredModelMBean.invoke(String opName, Object[] opArgs, String[] sig)
          调用 RequiredModelMBean 上的(或通过它调用)某个方法,并返回方法的执行结果。
 void RequiredModelMBean.load()
          使用在持久存储中找到的 MBean 的数据实例化此 MBean。
 void ModelMBeanNotificationBroadcaster.removeAttributeChangeNotificationListener(NotificationListener listener, String attributeName)
          从 RequiredModelMBean 移除一个 attributeChangeNotifications 的侦听器。
 void RequiredModelMBean.removeAttributeChangeNotificationListener(NotificationListener inlistener, String inAttributeName)
           
 void ModelMBeanNotificationBroadcaster.sendAttributeChangeNotification(Attribute oldValue, Attribute newValue)
          将包含属性的原有值和新值的 attributeChangeNotification 发送到 ModelMBean 上已注册的 AttributeChangeNotification 侦听器。
 void RequiredModelMBean.sendAttributeChangeNotification(Attribute inOldVal, Attribute inNewVal)
           
 void ModelMBeanNotificationBroadcaster.sendAttributeChangeNotification(AttributeChangeNotification notification)
          将传入的 attributeChangeNotification 发送到 ModelMBean 上已注册的 attributeChangeNotification 侦听器。
 void RequiredModelMBean.sendAttributeChangeNotification(AttributeChangeNotification ntfyObj)
           
 void ModelMBeanNotificationBroadcaster.sendNotification(Notification ntfyObj)
          以 jmx.modelmbean.generic 通知形式将传入的 Notification 发送到 ModelMBean 上已注册的 Notification 侦听器。
 void RequiredModelMBean.sendNotification(Notification ntfyObj)
           
 void ModelMBeanNotificationBroadcaster.sendNotification(String ntfyText)
          将包含传入文本字符串的 Notification 发送到 ModelMBean 上已注册的 Notification 侦听器。
 void RequiredModelMBean.sendNotification(String ntfyText)
           
 void RequiredModelMBean.setAttribute(Attribute attribute)
          设置指定的 ModelMBean 的指定属性值。
 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 ModelMBean.setManagedResource(Object mr, String mr_type)
          设置对象的实例句柄,我们将根据此句柄执行此 ModelMBean 管理接口(MBeanInfo 和 Descriptor)中的所有方法。
 void RequiredModelMBean.setManagedResource(Object mr, String mr_type)
          设置对象的实例句柄,我们将根据该句柄执行此 ModelMBean 管理接口(MBeanInfo 和 Descripto)中的所有方法。
 void ModelMBeanInfo.setMBeanDescriptor(Descriptor inDescriptor)
          设置 ModelMBean 的描述符。
 void ModelMBeanInfoSupport.setMBeanDescriptor(Descriptor inMBeanDescriptor)
           
 void ModelMBean.setModelMBeanInfo(ModelMBeanInfo inModelMBeanInfo)
          使用传入的 ModelMBeanInfo 实例化 ModelMBean 对象。
 void RequiredModelMBean.setModelMBeanInfo(ModelMBeanInfo mbi)
          使用传入的 ModelMBeanInfo 实例化 ModelMBean 对象。
 void RequiredModelMBean.store()
          捕获此 MBean 实例的当前状态,并将它写出到持久存储中。
 

抛出 MBeanExceptionjavax.management.modelmbean 中的构造方法
DescriptorSupport(int initNumFields)
          描述符构造方法。
DescriptorSupport(String inStr)
          Descriptor 构造方法带有一个 XML String。
RequiredModelMBean()
          构造带有空 ModelMBeanInfo 的 RequiredModelMBean
RequiredModelMBean(ModelMBeanInfo mbi)
          使用传入的 ModelMBeanInfo 构造 RequiredModelMBean 对象。
 

javax.management.remote.rmiMBeanException 的使用
 

抛出 MBeanExceptionjavax.management.remote.rmi 中的方法
 ObjectInstance RMIConnection.createMBean(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject)
          处理 MBeanServerConnection.createMBean(String, ObjectName, Object[], String[]) 方法。
 ObjectInstance RMIConnectionImpl.createMBean(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject)
           
 ObjectInstance RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5)
           
 ObjectInstance RMIConnection.createMBean(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject)
          处理 MBeanServerConnection.createMBean(String, ObjectName, ObjectName, Object[], String[]) 方法。
 ObjectInstance RMIConnectionImpl.createMBean(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject)
           
 ObjectInstance 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)
           
 ObjectInstance RMIConnection.createMBean(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject)
          处理 MBeanServerConnection.createMBean(String, ObjectName, ObjectName) 方法。
 ObjectInstance RMIConnectionImpl.createMBean(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject)
           
 ObjectInstance RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, ObjectName $param_ObjectName_3, Subject $param_Subject_4)
           
 ObjectInstance RMIConnection.createMBean(String className, ObjectName name, Subject delegationSubject)
          处理 MBeanServerConnection.createMBean(String, ObjectName) 方法。
 ObjectInstance RMIConnectionImpl.createMBean(String className, ObjectName name, Subject delegationSubject)
           
 ObjectInstance RMIConnectionImpl_Stub.createMBean(String $param_String_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3)
           
 Object RMIConnection.getAttribute(ObjectName name, String attribute, Subject delegationSubject)
          处理 MBeanServerConnection.getAttribute(ObjectName, String) 方法。
 Object RMIConnectionImpl.getAttribute(ObjectName name, String attribute, Subject delegationSubject)
           
 Object RMIConnectionImpl_Stub.getAttribute(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3)
           
 Object RMIConnection.invoke(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject)
          处理 MBeanServerConnection.invoke(ObjectName, String, Object[], String[]) 方法。
 Object RMIConnectionImpl.invoke(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject)
           
 Object RMIConnectionImpl_Stub.invoke(ObjectName $param_ObjectName_1, String $param_String_2, MarshalledObject $param_MarshalledObject_3, String[] $param_arrayOf_String_4, Subject $param_Subject_5)
           
 void RMIConnection.setAttribute(ObjectName name, MarshalledObject attribute, Subject delegationSubject)
          处理 MBeanServerConnection.setAttribute(ObjectName, Attribute) 方法。
 void RMIConnectionImpl.setAttribute(ObjectName name, MarshalledObject attribute, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.setAttribute(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3)
           
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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