JavaTM 2 Platform
Standard Ed. 6

類別 javax.management.InstanceNotFoundException
的使用

使用 InstanceNotFoundException 的軟體套件
javax.management 提供 Java Management Extensions 的核心類別。 
javax.management.modelmbean 提供了 ModelMBean 類別的定義。 
javax.management.relation 提供 Relation Service 的定義。 
javax.management.remote.rmi RMI 連接器是供 JMX Remote API 使用的一種連接器,後者使用 RMI 將客戶端請求傳輸到遠端 MBean 伺服器。 
javax.management.timer 提供對 Timer MBean(計時器 MBean)的定義。 
 

javax.managementInstanceNotFoundException 的使用
 

拋出 InstanceNotFoundExceptionjavax.management 中的方法
 void MBeanServer.addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
           
 void MBeanServerConnection.addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
          向已註冊的 MBean 添加一個偵聽器。
 void MBeanServer.addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
           
 void MBeanServerConnection.addNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
          向已註冊的 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。
 ObjectInputStream MBeanServer.deserialize(ObjectName name, byte[] data)
          已過時。 使用 getClassLoaderFor 為反序列化獲得合適的類別載入器。
 ObjectInputStream MBeanServer.deserialize(String className, ObjectName loaderName, byte[] data)
          已過時。 使用 getClassLoader 為反序列化獲得類別載入器。
 Object MBeanServer.getAttribute(ObjectName name, String attribute)
           
 Object MBeanServerConnection.getAttribute(ObjectName name, String attribute)
          獲得指定 MBean 的特定屬性值。
 AttributeList MBeanServer.getAttributes(ObjectName name, String[] attributes)
           
 AttributeList MBeanServerConnection.getAttributes(ObjectName name, String[] attributes)
          獲得指定 MBean 的多個屬性值。
 ClassLoader MBeanServer.getClassLoader(ObjectName loaderName)
          返回指定的 ClassLoader
 ClassLoader MBeanServer.getClassLoaderFor(ObjectName mbeanName)
          返回用於載入指定 MBean 的類別的 ClassLoader
 MBeanInfo MBeanServer.getMBeanInfo(ObjectName name)
           
 MBeanInfo MBeanServerConnection.getMBeanInfo(ObjectName name)
          此方法發現了 MBean 為管理而公開的屬性和操作。
 ObjectInstance MBeanServer.getObjectInstance(ObjectName name)
           
 ObjectInstance MBeanServerConnection.getObjectInstance(ObjectName name)
          獲得向 MBean 伺服器註冊的給定 MBean 的 ObjectInstance
 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 上調用某個操作。
 boolean MBeanServer.isInstanceOf(ObjectName name, String className)
           
 boolean MBeanServerConnection.isInstanceOf(ObjectName name, String className)
          如果指定的 MBean 是指定類別的一個實例,則返回 true;否則返回 false。
 void PersistentMBean.load()
          使用持久存儲中找到的 MBean 的資料實例化此 MBean 實例。
 void MBeanServer.removeNotificationListener(ObjectName name, NotificationListener listener)
           
 void MBeanServerConnection.removeNotificationListener(ObjectName name, NotificationListener listener)
          從已註冊的 MBean 中移除一個偵聽器。
 void MBeanServer.removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
           
 void MBeanServerConnection.removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
          從已註冊的 MBean 中移除一個偵聽器。
 void MBeanServer.removeNotificationListener(ObjectName name, ObjectName listener)
           
 void MBeanServerConnection.removeNotificationListener(ObjectName name, ObjectName listener)
          從已註冊的 MBean 中移除一個偵聽器。
 void MBeanServer.removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
           
 void MBeanServerConnection.removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
          從已註冊的 MBean 中移除一個偵聽器。
 void MBeanServer.setAttribute(ObjectName name, Attribute attribute)
           
 void MBeanServerConnection.setAttribute(ObjectName name, Attribute attribute)
          設置指定 MBean 的特定屬性值。
 AttributeList MBeanServer.setAttributes(ObjectName name, AttributeList attributes)
           
 AttributeList MBeanServerConnection.setAttributes(ObjectName name, AttributeList attributes)
          設置指定 MBean 的多個屬性值。
 void PersistentMBean.store()
          捕獲此 MBean 實例的當前狀態並將其寫出到持久存儲中。
 void MBeanServer.unregisterMBean(ObjectName name)
           
 void MBeanServerConnection.unregisterMBean(ObjectName name)
          從 MBean 伺服器中註銷一個 MBean。
 

javax.management.modelmbeanInstanceNotFoundException 的使用
 

拋出 InstanceNotFoundExceptionjavax.management.modelmbean 中的方法
 void RequiredModelMBean.load()
          使用在持久存儲中找到的 MBean 的資料實例化此 MBean。
 void ModelMBean.setManagedResource(Object mr, String mr_type)
          設置物件的實例句柄,我們將根據此句柄執行此 ModelMBean 管理介面(MBeanInfo 和 Descriptor)中的所有方法。
 void RequiredModelMBean.setManagedResource(Object mr, String mr_type)
          設置物件的實例句柄,我們將根據該句柄執行此 ModelMBean 管理介面(MBeanInfo 和 Descripto)中的所有方法。
 void RequiredModelMBean.store()
          捕獲此 MBean 實例的當前狀態,並將它寫出到持久存儲中。
 

javax.management.relationInstanceNotFoundException 的使用
 

拋出 InstanceNotFoundExceptionjavax.management.relation 中的方法
 void RelationService.addRelation(ObjectName relationObjectName)
          作為 Relation Service 中的關係添加由使用者創建(且由其在 MBean Server 中註冊)的 MBean。
 void RelationServiceMBean.addRelation(ObjectName relationObjectName)
          作為 Relation Service 中的關係添加由使用者創建(且由其在 MBean Server 中註冊)的 MBean。
 

javax.management.remote.rmiInstanceNotFoundException 的使用
 

拋出 InstanceNotFoundExceptionjavax.management.remote.rmi 中的方法
 void RMIConnection.addNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject)
          處理 MBeanServerConnection.addNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) 方法。
 void RMIConnectionImpl.addNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.addNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5)
           
 Integer[] RMIConnection.addNotificationListeners(ObjectName[] names, MarshalledObject[] filters, Subject[] delegationSubjects)
          處理 MBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) 方法。
 Integer[] RMIConnectionImpl.addNotificationListeners(ObjectName[] names, MarshalledObject[] filters, Subject[] delegationSubjects)
           
 Integer[] RMIConnectionImpl_Stub.addNotificationListeners(ObjectName[] $param_arrayOf_ObjectName_1, MarshalledObject[] $param_arrayOf_MarshalledObject_2, Subject[] $param_arrayOf_Subject_3)
           
 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)
           
 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)
           
 AttributeList RMIConnection.getAttributes(ObjectName name, String[] attributes, Subject delegationSubject)
          處理 MBeanServerConnection.getAttributes(ObjectName, String[]) 方法。
 AttributeList RMIConnectionImpl.getAttributes(ObjectName name, String[] attributes, Subject delegationSubject)
           
 AttributeList RMIConnectionImpl_Stub.getAttributes(ObjectName $param_ObjectName_1, String[] $param_arrayOf_String_2, Subject $param_Subject_3)
           
 MBeanInfo RMIConnection.getMBeanInfo(ObjectName name, Subject delegationSubject)
          處理 MBeanServerConnection.getMBeanInfo(ObjectName) 方法。
 MBeanInfo RMIConnectionImpl.getMBeanInfo(ObjectName name, Subject delegationSubject)
           
 MBeanInfo RMIConnectionImpl_Stub.getMBeanInfo(ObjectName $param_ObjectName_1, Subject $param_Subject_2)
           
 ObjectInstance RMIConnection.getObjectInstance(ObjectName name, Subject delegationSubject)
          處理 MBeanServerConnection.getObjectInstance(ObjectName) 方法。
 ObjectInstance RMIConnectionImpl.getObjectInstance(ObjectName name, Subject delegationSubject)
           
 ObjectInstance RMIConnectionImpl_Stub.getObjectInstance(ObjectName $param_ObjectName_1, Subject $param_Subject_2)
           
 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)
           
 boolean RMIConnection.isInstanceOf(ObjectName name, String className, Subject delegationSubject)
          處理 MBeanServerConnection.isInstanceOf(ObjectName, String) 方法。
 boolean RMIConnectionImpl.isInstanceOf(ObjectName name, String className, Subject delegationSubject)
           
 boolean RMIConnectionImpl_Stub.isInstanceOf(ObjectName $param_ObjectName_1, String $param_String_2, Subject $param_Subject_3)
           
 void RMIConnection.removeNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject)
          處理 MBeanServerConnection.removeNotificationListener(ObjectName, ObjectName, NotificationFilter, Object) 方法。
 void RMIConnectionImpl.removeNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.removeNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, MarshalledObject $param_MarshalledObject_3, MarshalledObject $param_MarshalledObject_4, Subject $param_Subject_5)
           
 void RMIConnection.removeNotificationListener(ObjectName name, ObjectName listener, Subject delegationSubject)
          處理 MBeanServerConnection.removeNotificationListener(ObjectName, ObjectName) 方法。
 void RMIConnectionImpl.removeNotificationListener(ObjectName name, ObjectName listener, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.removeNotificationListener(ObjectName $param_ObjectName_1, ObjectName $param_ObjectName_2, Subject $param_Subject_3)
           
 void RMIConnection.removeNotificationListeners(ObjectName name, Integer[] listenerIDs, Subject delegationSubject)
          處理 removeNotificationListener(ObjectName, NotificationListener)removeNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) 方法。
 void RMIConnectionImpl.removeNotificationListeners(ObjectName name, Integer[] listenerIDs, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.removeNotificationListeners(ObjectName $param_ObjectName_1, Integer[] $param_arrayOf_Integer_2, Subject $param_Subject_3)
           
 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)
           
 AttributeList RMIConnection.setAttributes(ObjectName name, MarshalledObject attributes, Subject delegationSubject)
          處理 MBeanServerConnection.setAttributes(ObjectName, AttributeList) 方法。
 AttributeList RMIConnectionImpl.setAttributes(ObjectName name, MarshalledObject attributes, Subject delegationSubject)
           
 AttributeList RMIConnectionImpl_Stub.setAttributes(ObjectName $param_ObjectName_1, MarshalledObject $param_MarshalledObject_2, Subject $param_Subject_3)
           
 void RMIConnection.unregisterMBean(ObjectName name, Subject delegationSubject)
          處理 MBeanServerConnection.unregisterMBean(ObjectName) 方法。
 void RMIConnectionImpl.unregisterMBean(ObjectName name, Subject delegationSubject)
           
 void RMIConnectionImpl_Stub.unregisterMBean(ObjectName $param_ObjectName_1, Subject $param_Subject_2)
           
 

javax.management.timerInstanceNotFoundException 的使用
 

拋出 InstanceNotFoundExceptionjavax.management.timer 中的方法
 void Timer.removeNotification(Integer id)
          從通知列表中移除與指定標識符對應的計時器通知。
 void TimerMBean.removeNotification(Integer id)
          從通知列表中移除與指定的標識符對應的計時器通知。
 void Timer.removeNotifications(String type)
          從通知列表中移除與指定型別對應的所有計時器通知。
 void TimerMBean.removeNotifications(String type)
          從通知列表中移除與指定的型別對應的所有計時器通知。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

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