|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.management.relation.RoleInfo
public class RoleInfo
RoleInfo オブジェクトは、関係型に含まれるロールを集計します。
| フィールドの概要 | |
|---|---|
static int |
ROLE_CARDINALITY_INFINITY
無制限のカーディナリティを指定するためです。 |
| コンストラクタの概要 | |
|---|---|
RoleInfo(RoleInfo theRoleInfo)
コンストラクタをコピーします。 |
|
RoleInfo(String theName,
String theRefMBeanClassName)
コンストラクタです。 |
|
RoleInfo(String theName,
String theRefMBeanClassName,
boolean theIsReadable,
boolean theIsWritable)
コンストラクタです。 |
|
RoleInfo(String theName,
String theRefMBeanClassName,
boolean theIsReadable,
boolean theIsWritable,
int theMinDegree,
int theMaxDegree,
String theDescription)
コンストラクタです。 |
|
| メソッドの概要 | |
|---|---|
boolean |
checkMaxDegree(int theValue)
指定された値が最大値以下であるかどうかを示す boolean 型を返します。 |
boolean |
checkMinDegree(int theValue)
指定された値が最小値以上であるかどうかを示す boolean 型を返します。 |
String |
getDescription()
ロールの説明テキストを返します。 |
int |
getMaxDegree()
対応するロール参照の最大値を返します。 |
int |
getMinDegree()
対応するロール参照の最小値を返します。 |
String |
getName()
ロール名を返します。 |
String |
getRefMBeanClassName()
対応するロール内で参照される MBean (複数可) の型名を返します。 |
boolean |
isReadable()
ロールの読み取りアクセスモードを返します (読み取り可能な場合は true)。 |
boolean |
isWritable()
ロールの書き込みアクセスモードを返します (書き込み可能な場合は true)。 |
String |
toString()
ロール情報について説明する文字列を返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
|---|
public static int ROLE_CARDINALITY_INFINITY
| コンストラクタの詳細 |
|---|
public RoleInfo(String theName,
String theRefMBeanClassName,
boolean theIsReadable,
boolean theIsWritable,
int theMinDegree,
int theMaxDegree,
String theDescription)
throws IllegalArgumentException,
InvalidRoleInfoException,
ClassNotFoundException,
NotCompliantMBeanException
theName - ロール名theRefMBeanClassName - 対応するロール内で参照される MBean (複数可) のクラス名。MBean M がこのロールに含まれる場合、MBean サーバは isInstanceOf(M, theRefMBeanClassName) に対して true を返す必要があるtheIsReadable - 対応するロールが読み取り可能かどうかを示すフラグtheIsWritable - 対応するロールが設定可能かどうかを示すフラグtheMinDegree - ロールの最小値 (対応するロールに含まれる MBean の最小数)。theMaxDegree 以下でなければならない。数を制限しない場合、ROLE_CARDINALITY_INFINITYtheMaxDegree - ロールの最大値 (対応するロールに含まれる MBean の最大数)。theMinDegree 以上でなければならない。数を制限しない場合、ROLE_CARDINALITY_INFINITYtheDescription - ロールの説明 (null も可)
IllegalArgumentException - パラメータが null の場合
InvalidRoleInfoException - 最小値が最大値より大きい場合
ClassNotFoundException - JMX 1.2 以降、この例外はスローされなくなる。この例外は、既存のコードとの互換性を確保するため、このクラスの宣言に引き続き含まれている
NotCompliantMBeanException - theRefMBeanClassName クラスが MBean クラスでない場合
public RoleInfo(String theName,
String theRefMBeanClassName,
boolean theIsReadable,
boolean theIsWritable)
throws IllegalArgumentException,
ClassNotFoundException,
NotCompliantMBeanException
theName - ロール名theRefMBeanClassName - 対応するロール内で参照される MBean (複数可) のクラス名。MBean M がこのロールに含まれる場合、MBean サーバは isInstanceOf(M, theRefMBeanClassName) に対して true を返す必要があるtheIsReadable - 対応するロールが読み取り可能かどうかを示すフラグtheIsWritable - 対応するロールが設定可能かどうかを示すフラグ
最小値と最大値のデフォルト値は 1 です。
ロールの説明のデフォルト値は null です。
IllegalArgumentException - パラメータが null の場合
ClassNotFoundException - JMX 1.2 以降、この例外はスローされなくなる。この例外は、既存のコードとの互換性を確保するため、このクラスの宣言に引き続き含まれている
NotCompliantMBeanException - JMX 1.2 以降、この例外はスローされなくなる。この例外は、既存のコードとの互換性を確保するため、このクラスの宣言に引き続き含まれている
public RoleInfo(String theName,
String theRefMBeanClassName)
throws IllegalArgumentException,
ClassNotFoundException,
NotCompliantMBeanException
theName - ロール名theRefMBeanClassName - 対応するロール内で参照される MBean (複数可) のクラス名。MBean M がこのロールに含まれる場合、MBean サーバは isInstanceOf(M, theRefMBeanClassName) に対して true を返す必要がある
IsReadable と IsWritable のデフォルト値は true です。
最小値と最大値のデフォルト値は 1 です。
ロールの説明のデフォルト値は null です。
IllegalArgumentException - パラメータが null の場合
ClassNotFoundException - JMX 1.2 以降、この例外はスローされなくなる。この例外は、既存のコードとの互換性を確保するため、このクラスの宣言に引き続き含まれている
NotCompliantMBeanException - JMX 1.2 以降、この例外はスローされなくなる。この例外は、既存のコードとの互換性を確保するため、このクラスの宣言に引き続き含まれている
public RoleInfo(RoleInfo theRoleInfo)
throws IllegalArgumentException
theRoleInfo - コピーされる RoleInfo
IllegalArgumentException - パラメータが null の場合| メソッドの詳細 |
|---|
public String getName()
public boolean isReadable()
public boolean isWritable()
public String getDescription()
public int getMinDegree()
public int getMaxDegree()
public String getRefMBeanClassName()
対応するロール内で参照される MBean (複数可) の型名を返します。
public boolean checkMinDegree(int theValue)
theValue - 値
public boolean checkMaxDegree(int theValue)
theValue - 値
public String toString()
Object 内の toString
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。