|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
public interface OpenMBeanInfo
描述一個 Open MBean:Open MBean 的識別方式為,如果 Open MBean 的 getMBeanInfo() 方法返回實作 OpenMBeanInfo 介面(通常為 OpenMBeanInfoSupport)的類別的實例,則可識別 Open MBean。
此介面宣告的方法與類別 MBeanInfo 相同。實作此介面的類別(通常為 OpenMBeanInfoSupport)應擴展 MBeanInfo。
實作類別的 getAttributes()、getOperations() 和 getConstructors() 方法在運行時應分別返回分別實作 OpenMBeanAttributeInfo、OpenMBeanOperationInfo 或 OpenMBeanConstructorInfo 介面的 MBeanAttributeInfo、MBeanOperationInfo 或 MBeanConstructorInfo 的子類別實例的陣列。
| 方法摘要 | |
|---|---|
boolean |
equals(Object obj)
比較指定 obj 參數與此 OpenMBeanInfo 實例的相等性。 |
MBeanAttributeInfo[] |
getAttributes()
返回 OpenMBeanAttributeInfo 實例的陣列,該實例描述此 OpenMBeanInfo 實例描述的 open MBean 中的每個屬性。 |
String |
getClassName()
返回此 OpenMBeanInfo 描述的 open MBean 實例的完全限定的 Java 類別名。 |
MBeanConstructorInfo[] |
getConstructors()
返回 OpenMBeanConstructorInfo 實例的陣列,這些實例描述此 OpenMBeanInfo 實例描述的 open MBean 中的每個建構子。 |
String |
getDescription()
返回此 OpenMBeanInfo 描述的 open MBean 實例的型別的可讀描述。 |
MBeanNotificationInfo[] |
getNotifications()
返回 MBeanNotificationInfo 實例的陣列,這些實例描述此 OpenMBeanInfo 實例描述的 open MBean 所發出的每個通知。 |
MBeanOperationInfo[] |
getOperations()
返回 OpenMBeanOperationInfo 實例的陣列,這些實例描述此 OpenMBeanInfo 實例所描述的 open MBean 中的每個操作。 |
int |
hashCode()
返回此 OpenMBeanInfo 實例的雜湊碼值。 |
String |
toString()
返回此 OpenMBeanInfo 實例的字元串表示形式。 |
| 方法詳細資訊 |
|---|
String getClassName()
String getDescription()
MBeanAttributeInfo[] getAttributes()
OpenMBeanAttributeInfoSupport)的 MBeanAttributeInfo 的一個子類別。
MBeanOperationInfo[] getOperations()
OpenMBeanOperationInfoSupport)的 MBeanOperationInfo 的一個子類別。
MBeanConstructorInfo[] getConstructors()
OpenMBeanConstructorInfoSupport)的 MBeanConstructorInfo 的一個子類別。
MBeanNotificationInfo[] getNotifications()
boolean equals(Object obj)
OpenMBeanInfo 實例的相等性。
當且僅當下面的所有語句均為 true 時,才返回 true:
OpenMBeanInfo 介面;OpenMBeanInfo 介面的不同實作的 obj 參數正常工作。
Object 中的 equalsobj - 與此 OpenMBeanInfo 實例進行相等性比較的物件;
OpenMBeanInfo 實例,則返回 true。Object.hashCode(),
Hashtableint hashCode()
OpenMBeanInfo 實例的雜湊碼值。
OpenMBeanInfo 實例的雜湊碼是在 equals 比較中使用的所有資訊元素的雜湊碼的總和(即類別名及其關於屬性、建構子、操作和通知的資訊,其中每個陣列的 hashCode 都通過調用 new java.util.HashSet(java.util.Arrays.asList(this.getSignature)).hashCode() 計算)。
這確保 t1.equals(t2) 意味著對於任何兩個 OpenMBeanInfo 實例 t1 和 t2 而言,都存在 t1.hashCode()==t2.hashCode(),這是方法 Object.hashCode() 的通用協定所要求的。
Object 中的 hashCodeOpenMBeanInfo 實例的雜湊碼值Object.equals(java.lang.Object),
HashtableString toString()
OpenMBeanInfo 實例的字元串表示形式。
字元串表示形式由此類別(即javax.management.openmbean.OpenMBeanInfo)的名稱、MBean 類別名和關於所描述 MBean 的屬性、建構子、操作和通知資訊的字元串表示形式組成。
Object 中的 toStringOpenMBeanInfo 實例的字元串表示形式
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。