|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.management.MBeanInfo
javax.management.openmbean.OpenMBeanInfoSupport
public class OpenMBeanInfoSupport
OpenMBeanInfoSupport 類別描述 open MBean 的管理資訊:它是 MBeanInfo 的子類別,並且實作了 OpenMBeanInfo 介面。注意,open MBean 的識別方式是,如果其 getMBeanInfo() 方法返回實作 OpenMBeanInfo 介面(通常為 OpenMBeanInfoSupport)的類別的實例,則可識別 open MBean。
| 建構子摘要 | |
|---|---|
OpenMBeanInfoSupport(String className,
String description,
OpenMBeanAttributeInfo[] openAttributes,
OpenMBeanConstructorInfo[] openConstructors,
OpenMBeanOperationInfo[] openOperations,
MBeanNotificationInfo[] notifications)
建構一個 OpenMBeanInfoSupport 實例,它使用指定的 className、description、openAttributes、openConstructors、openOperations 和 notifications 描述 open MBeans 的類別。 |
|
OpenMBeanInfoSupport(String className,
String description,
OpenMBeanAttributeInfo[] openAttributes,
OpenMBeanConstructorInfo[] openConstructors,
OpenMBeanOperationInfo[] openOperations,
MBeanNotificationInfo[] notifications,
Descriptor descriptor)
建構一個 OpenMBeanInfoSupport 實例,它使用指定的 className、description、openAttributes、openConstructors、openOperations、notifications 和 descriptor 描述 open MBeans 的類別 |
|
| 方法摘要 | |
|---|---|
boolean |
equals(Object obj)
比較指定 obj 參數與此 OpenMBeanInfoSupport 實例的相等性。 |
int |
hashCode()
返回此 OpenMBeanInfoSupport 實例的雜湊碼值。 |
String |
toString()
返回此 OpenMBeanInfoSupport 實例的字元串表示形式。 |
| 從類別 javax.management.MBeanInfo 繼承的方法 |
|---|
clone, getAttributes, getClassName, getConstructors, getDescription, getDescriptor, getNotifications, getOperations |
| 從類別 java.lang.Object 繼承的方法 |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| 從介面 javax.management.openmbean.OpenMBeanInfo 繼承的方法 |
|---|
getAttributes, getClassName, getConstructors, getDescription, getNotifications, getOperations |
| 建構子詳細資訊 |
|---|
public OpenMBeanInfoSupport(String className,
String description,
OpenMBeanAttributeInfo[] openAttributes,
OpenMBeanConstructorInfo[] openConstructors,
OpenMBeanOperationInfo[] openOperations,
MBeanNotificationInfo[] notifications)
建構一個 OpenMBeanInfoSupport 實例,它使用指定的 className、description、openAttributes、openConstructors、openOperations 和 notifications 描述 open MBeans 的類別。
openAttributes、openConstructors、openOperations 和 notifications 陣列參數是被內部複製的,因此對這些參數參考的陣列的後續更改不影響此實例。
className - 此 OpenMBeanInfoSupport 實例描述的 open MBean 的完全限定的 Java 類別名。description - 此 OpenMBeanInfoSupport 實例描述的 open MBean 的可讀描述。openAttributes - 所描述的 open MBean 的公開屬性的列表;必須是 MBeanAttributeInfo(通常為 OpenMBeanAttributeInfoSupport)的子類別的實例組成的陣列。openConstructors - 所描述的 open MBean 的公開的公用建構子的列表;必須是 MBeanConstructorInfo(通常為 OpenMBeanConstructorInfoSupport)的子類別的實例組成的陣列。openOperations - 所描述的 open MBean 的公開操作的列表。必須是 MBeanOperationInfo(通常為 OpenMBeanOperationInfoSupport)的子類別的實例組成的陣列。notifications - 所描述的 open MBean 發出的通知列表。
ArrayStoreException - 如果 openAttributes、openConstructors、openOperations 分別不是 MBeanAttributeInfo、MBeanConstructorInfo、MBeanOperationInfo 子類別的實例組成的陣列。
public OpenMBeanInfoSupport(String className,
String description,
OpenMBeanAttributeInfo[] openAttributes,
OpenMBeanConstructorInfo[] openConstructors,
OpenMBeanOperationInfo[] openOperations,
MBeanNotificationInfo[] notifications,
Descriptor descriptor)
建構一個 OpenMBeanInfoSupport 實例,它使用指定的 className、description、openAttributes、openConstructors、openOperations、notifications 和 descriptor 描述 open MBeans 的類別
openAttributes、openConstructors、openOperations 和 notifications 陣列參數是被內部複製的,因此對這些參數參考的陣列的後續更改不影響此實例
className - 此 OpenMBeanInfoSupport 實例描述的 open MBean 的完全限定的 Java 類別名。description - 此 OpenMBeanInfoSupport 實例描述的 open MBean 的可讀描述。openAttributes - 所描述的 open MBean 的公開屬性的列表;必須是 MBeanAttributeInfo(通常為 OpenMBeanAttributeInfoSupport)的子類別的實例組成的陣列。openConstructors - 所描述的 open MBean 的公開的公用建構子的列表;必須是 MBeanConstructorInfo(通常為 OpenMBeanConstructorInfoSupport)的子類別的實例組成的陣列。openOperations - 所描述的 open MBean 的公開操作的列表。必須是 MBeanOperationInfo(通常為 OpenMBeanOperationInfoSupport)的子類別的實例組成的陣列。notifications - 所描述的 open MBean 發出的通知列表。descriptor - MBean 的描述符。此參數可以為 null,等效於空描述符。
ArrayStoreException - 如果 openAttributes、openConstructors、openOperations 分別不是 MBeanAttributeInfo、MBeanConstructorInfo、MBeanOperationInfo 子類別的實例組成的陣列。| 方法詳細資訊 |
|---|
public boolean equals(Object obj)
obj 參數與此 OpenMBeanInfoSupport 實例的相等性。
當且僅當下面的所有語句均為 true 時,才返回 true:
obj 為非 null,obj 還實作 OpenMBeanInfo 介面,equals 方法對作為 OpenMBeanInfo 介面的不同實作的 obj 參數正常工作。
OpenMBeanInfo 中的 equalsMBeanInfo 中的 equalsobj - 與此 OpenMBeanInfoSupport 實例進行相等性比較的物件;
OpenMBeanInfoSupport 實例,則返回 true。Object.hashCode(),
Hashtablepublic int hashCode()
返回此 OpenMBeanInfoSupport 實例的雜湊碼值。
OpenMBeanInfoSupport 實例的雜湊碼是在 equals 比較中使用的所有資訊元素的雜湊碼的總和(即類別名和關於屬性、建構子、操作和通知的資訊,其中每個陣列的 hashCode 都通過調用 new
java.util.HashSet(java.util.Arrays.asList(this.getSignature)).hashCode() 來計算)。
這確保 t1.equals(t2) 意味著對於任何兩個 OpenMBeanInfoSupport 實例 t1 和 t2 而言,都存在 t1.hashCode()==t2.hashCode(),這是方法 Object.hashCode() 的通用協定所要求的。
不過請注意,根據 equals(java.lang.Object) 中的定義,實作 OpenMBeanInfo 介面的類別的其他實例可能與此 OpenMBeanInfoSupport 實例相等,但是如果它的計算方法不同,可能會有不同的雜湊碼。
由於 OpenMBeanInfoSupport 實例是不可變的,此實例的雜湊碼在首次調用 hashCode 時被計算,因此對後續調用返回相同的值。
OpenMBeanInfo 中的 hashCodeMBeanInfo 中的 hashCodeOpenMBeanInfoSupport 實例的雜湊碼值Object.equals(java.lang.Object),
Hashtablepublic String toString()
返回此 OpenMBeanInfoSupport 實例的字元串表示形式。
字元串表示形式由此類別(即 javax.management.openmbean.OpenMBeanInfoSupport)的名稱、MBean 類別名、關於所描述 MBean 的屬性、建構子、操作、通知資訊的字元串表示形式以及描述符的字元串表示形式組成。
由於 OpenMBeanInfoSupport 實例是不可變的,此實例的字元串表示形式在首次調用 toString 時被計算一次,然後對後續調用返回相同的值。
OpenMBeanInfo 中的 toStringMBeanInfo 中的 toStringOpenMBeanInfoSupport 實例的字元串表示形式
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。