public class OpenMBeanInfoSupport extends MBeanInfo implements OpenMBeanInfo
OpenMBeanInfoSupport クラスは公開 MBean の管理情報を記述します。これは MBeanInfo のサブクラスであり、OpenMBeanInfo インタフェースを実装します。公開 MBean の getMBeanInfo() メソッドは、OpenMBeanInfo インタフェースを実装するクラスのインスタンス (通常 OpenMBeanInfoSupport) を返すことになっています。| コンストラクタと説明 |
|---|
OpenMBeanInfoSupport(String className, String description, OpenMBeanAttributeInfo[] openAttributes, OpenMBeanConstructorInfo[] openConstructors, OpenMBeanOperationInfo[] openOperations, MBeanNotificationInfo[] notifications)
指定された
className、description、openAttributes、openConstructors、openOperations、および notifications を持つ公開 MBean のクラスを記述する、OpenMBeanInfoSupport インスタンスを構築します。 |
OpenMBeanInfoSupport(String className, String description, OpenMBeanAttributeInfo[] openAttributes, OpenMBeanConstructorInfo[] openConstructors, OpenMBeanOperationInfo[] openOperations, MBeanNotificationInfo[] notifications, Descriptor descriptor)
指定された
className、description、openAttributes、openConstructors、openOperations、notifications、および descriptor で公開 MBean のクラスを記述する、OpenMBeanInfoSupport インスタンスを構築します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean |
equals(Object obj)
指定された
obj パラメータとこの OpenMBeanInfoSupport インスタンスが等しいかどうかを比較します。 |
int |
hashCode()
この
OpenMBeanInfoSupport インスタンスのハッシュコード値を返します。 |
String |
toString()
この
OpenMBeanInfoSupport インスタンスの文字列表現を返します。 |
clone, getAttributes, getClassName, getConstructors, getDescription, getDescriptor, getNotifications, getOperationsgetAttributes, getClassName, getConstructors, getDescription, getNotifications, getOperationspublic OpenMBeanInfoSupport(String className, String description, OpenMBeanAttributeInfo[] openAttributes, OpenMBeanConstructorInfo[] openConstructors, OpenMBeanOperationInfo[] openOperations, MBeanNotificationInfo[] notifications)
指定された className、description、openAttributes、openConstructors、openOperations、および notifications を持つ公開 MBean のクラスを記述する、OpenMBeanInfoSupport インスタンスを構築します。
openAttributes、openConstructors、openOperations、および notifications 配列パラメータは、これらのパラメータを使って参照されるその後の配列の変更がこのインスタンスに影響を及ぼさないように、内部でコピーされます。
className - この OpenMBeanInfoSupport インスタンスにより記述された公開 MBean の完全修飾 Java クラス名。description - この OpenMBeanInfoSupport インスタンスにより記述された公開 MBean に関する人間が読める形式の説明。openAttributes - 記述された公開 MBean の公開属性のリスト。MBeanAttributeInfo のサブクラス (通常 OpenMBeanAttributeInfoSupport) のインスタンスの配列でなければならない。openConstructors - 記述された公開 MBean の公開 public コンストラクタのリスト。MBeanConstructorInfo のサブクラス (通常 OpenMBeanConstructorInfoSupport) のインスタンスの配列でなければならない。openOperations - 記述された公開 MBean の公開オペレーションのリスト。MBeanOperationInfo のサブクラス (通常 OpenMBeanOperationInfoSupport) のインスタンスの配列でなければならない。notifications - 記述された公開 MBean から発行された通知のリスト。ArrayStoreException - openAttributes、openConstructors、openOperations が、それぞれ MBeanAttributeInfo、MBeanConstructorInfo、MBeanOperationInfo のサブクラスのインスタンスの配列ではない場合。public OpenMBeanInfoSupport(String className, String description, OpenMBeanAttributeInfo[] openAttributes, OpenMBeanConstructorInfo[] openConstructors, OpenMBeanOperationInfo[] openOperations, MBeanNotificationInfo[] notifications, Descriptor descriptor)
指定された className、description、openAttributes、openConstructors、openOperations、notifications、および descriptor で公開 MBean のクラスを記述する、OpenMBeanInfoSupport インスタンスを構築します。
openAttributes、openConstructors、openOperations、および notifications 配列パラメータは、これらのパラメータを使って参照されるその後の配列の変更がこのインスタンスに影響を及ぼさないように、内部でコピーされます。
className - この OpenMBeanInfoSupport インスタンスにより記述された公開 MBean の完全修飾 Java クラス名。description - この OpenMBeanInfoSupport インスタンスにより記述された公開 MBean に関する人間が読める形式の説明。openAttributes - 記述された公開 MBean の公開属性のリスト。MBeanAttributeInfo のサブクラス (通常 OpenMBeanAttributeInfoSupport) のインスタンスの配列でなければならない。openConstructors - 記述された公開 MBean の公開 public コンストラクタのリスト。MBeanConstructorInfo のサブクラス (通常 OpenMBeanConstructorInfoSupport) のインスタンスの配列でなければならない。openOperations - 記述された公開 MBean の公開オペレーションのリスト。MBeanOperationInfo のサブクラス (通常 OpenMBeanOperationInfoSupport) のインスタンスの配列でなければならない。notifications - 記述された公開 MBean から発行された通知のリスト。descriptor - MBean の記述子。null の場合があり、これは空の記述子と同等。ArrayStoreException - openAttributes、openConstructors、openOperations が、それぞれ MBeanAttributeInfo、MBeanConstructorInfo、MBeanOperationInfo のサブクラスのインスタンスの配列ではない場合。public boolean equals(Object obj)
指定された obj パラメータとこの OpenMBeanInfoSupport インスタンスが等しいかどうかを比較します。
次のすべての条件が満たされている場合に限り、true を返します。
obj が null でないobj が OpenMBeanInfo インタフェースも実装しているequals メソッドは、OpenMBeanInfo インタフェースの異なった実装である obj パラメータに対して正常に機能します。equals、インタフェース: OpenMBeanInfoequals、クラス: MBeanInfoobj - この OpenMBeanInfoSupport インスタンスと等しいかどうかを比較するオブジェクト。OpenMBeanInfoSupport インスタンスと等しい場合は true。Object.hashCode()、HashMappublic int hashCode()
この OpenMBeanInfoSupport インスタンスのハッシュコード値を返します。
OpenMBeanInfoSupport インスタンスのハッシュコードは、equals の比較で使用されたすべての情報要素 (個々の配列の new java.util.HashSet(java.util.Arrays.asList(this.getSignature)).hashCode() の呼び出しによって計算される) のハッシュコードの合計です。
これにより、Object.hashCode() メソッドの一般規約によって要求される、任意の 2 つの OpenMBeanInfoSupport インスタンス t1 と t2 で、t1.equals(t2) であれば t1.hashCode()==t2.hashCode() となることが保証されます。
OpenMBeanInfo インタフェースを実装する別のクラスインスタンスが、equals(java.lang.Object) で定義されているように、この OpenMBeanInfoSupport インスタンスと等しくなる場合もあります。しかし、計算方法が異なっているため、ハッシュコードも異なっている可能性があります。
OpenMBeanInfoSupport インスタンスは不変で、このインスタンスのハッシュコードは、hashCode の最初の呼び出し時に 1 回だけ計算されます。その後の呼び出しには、同じ値が返されます。
hashCode、インタフェース: OpenMBeanInfohashCode、クラス: MBeanInfoOpenMBeanInfoSupport インスタンスのハッシュコード値Object.equals(java.lang.Object), System.identityHashCode(java.lang.Object)public String toString()
この OpenMBeanInfoSupport インスタンスの文字列表現を返します。
この文字列表現は、このクラスの名前 (javax.management.openmbean.OpenMBeanInfoSupport)、MBean クラス名、記述された MBean の属性、コンストラクタ、オペレーション、および通知に関する情報の文字列表現、および記述子の文字列表現で構成されます。
OpenMBeanInfoSupport インスタンスは不変で、このインスタンスの文字列表現は、toString の最初の呼び出し時に 1 回だけ計算されます。その後の呼び出しには、同じ値が返されます。
toString、インタフェース: OpenMBeanInfotoString、クラス: MBeanInfoOpenMBeanInfoSupport インスタンスの文字列表現 バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.