|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.management.MBeanInfo
javax.management.openmbean.OpenMBeanInfoSupport
public class OpenMBeanInfoSupport
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 インスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
boolean |
equals(Object obj)
指定された obj パラメータとこの OpenMBeanInfoSupport インスタンスが等しいかどうかを比較します。 |
int |
hashCode()
この OpenMBeanInfoSupport インスタンスのハッシュコード値を返します。 |
String |
toString()
この OpenMBeanInfoSupport インスタンスの文字列表現を返します。 |
| クラス javax.management.MBeanInfo から継承されたメソッド |
|---|
clone, getAttributes, getClassName, getConstructors, getDescription, 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)
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 boolean equals(Object obj)
OpenMBeanInfoSupport インスタンスが等しいかどうかを比較します。
次のすべての条件が満たされている場合にかぎり、true を返します。
OpenMBeanInfo インタフェースを実装しているOpenMBeanInfo インタフェースの異なった実装である obj パラメータに対して正常に機能します。
OpenMBeanInfo 内の equalsMBeanInfo 内の equalsobj - この OpenMBeanInfoSupport インスタンスと等しいかどうかを比較するオブジェクト
OpenMBeanInfoSupport インスタンスと等しい場合は trueObject.hashCode(),
Hashtablepublic int hashCode()
OpenMBeanInfoSupport インスタンスのハッシュコード値を返します。
OpenMBeanInfoSupport インスタンスのハッシュコードは、equals の比較で使用されたすべての情報要素 (クラス名と、属性、コンストラクタ、オペレーション、および通知に関する情報。個々の配列の hashCode は 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 回だけ計算されます。その後の呼び出しには、同じ値が返されます。
OpenMBeanInfo 内の hashCodeMBeanInfo 内の hashCodeOpenMBeanInfoSupport インスタンスのハッシュコード値Object.equals(java.lang.Object),
Hashtablepublic String toString()
OpenMBeanInfoSupport インスタンスの文字列表現を返します。
この文字列表現は、このクラスの名前 (javax.management.openmbean.OpenMBeanInfoSupport)、MBean クラス名と、記述された MBean の属性、コンストラクタ、オペレーション、および通知に関する情報の文字列表現で構成されます。
OpenMBeanInfoSupport インスタンスは不変で、このインスタンスの文字列表現は、toString の最初の呼び出し時に 1 回だけ計算されます。その後の呼び出しには、同じ値が返されます。
OpenMBeanInfo 内の toStringObject 内の toStringOpenMBeanInfoSupport インスタンスの文字列表現
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。