java.lang.Object
javax.management.MBeanFeatureInfo
javax.management.MBeanOperationInfo
javax.management.modelmbean.ModelMBeanOperationInfo
- すべての実装されたインタフェース:
Serializable,Cloneable,DescriptorAccess,DescriptorRead
public class ModelMBeanOperationInfo extends MBeanOperationInfo implements DescriptorAccess
ModelMBeanOperationInfoオブジェクトは、ModelMBeanの管理オペレーションを記述します。 これは、関連Descriptorを持ち、DescriptorAccessインタフェースを実装したMBeanOperationInfoのサブクラスです。
記述子内のフィールドは次のように定義済みですが、この内容に限定されません。 この表で型がNumberである場合は、Longの10進数表現であるStringを使用することもできます。
| 名前 | 型 | 意味 |
|---|---|---|
| name | String | オペレーション名。 |
| descriptorType | String | 必ずoperation。 |
| class | String | メソッドが定義されたクラス(完全修飾)。 |
| role | String | 必ずoperation、getter、またはsetter。 |
| targetObject | Object | メソッドはこのオブジェクトに対して実行される。 |
| targetType | String | targetObjectのオブジェクト参照型。 次のうちのいずれか: ObjectReference、Handle、EJBHandle、IOR、RMIReference。 |
| value | Object | オペレーションのキャッシュ値。 |
| displayName | String | 人間が読める形式のオペレーションの表示名。 |
| currencyTimeLimit | Number | キャッシュ値の有効期間。 |
| lastUpdatedTimeStamp | Number | キャッシュ値が設定された時刻。 |
| visibility | Number | 1 - 4の値のうち1: 常に可視4:ほとんど不可視。 |
| presentationString | String | オペレーションの表現方法を説明するためのXML形式の文字列 |
デフォルトの記述子は、name、descriptorType、displayName、およびroleフィールドを設定します。 nameおよびdisplayNameフィールドのデフォルト値は、オペレーションの名前です。
注: 以前のバージョンの仕様との不整合があるため、currencyTimeLimitにはゼロ以下の値を使用しないようにしてください。 キャッシュに入った値が有効でないことを示す場合は、currencyTimeLimitフィールドを省略します。 この値が常に有効であることを示す場合は、このフィールドに非常に大きい値を指定します。
このクラスのserialVersionUIDは6532732096650090465Lです。
- 導入されたバージョン:
- 1.5
- 関連項目:
- 直列化された形式
-
フィールドのサマリー
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 ModelMBeanOperationInfo(String description, Method operationMethod)デフォルトの記述子でModelMBeanOperationInfoオブジェクトを構築します。ModelMBeanOperationInfo(String description, Method operationMethod, Descriptor descriptor)ModelMBeanOperationInfoオブジェクトを構築します。ModelMBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact)デフォルトの記述子でModelMBeanOperationInfoオブジェクトを構築します。ModelMBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact, Descriptor descriptor)ModelMBeanOperationInfoオブジェクトを構築します。ModelMBeanOperationInfo(ModelMBeanOperationInfo inInfo)このModelMBeanOperationオブジェクトから新しいModelMBeanOperationInfoオブジェクトを構築します。 -
メソッドのサマリー
修飾子と型 メソッド 説明 Objectclone()このModelMBeanOperationInfoを複製して新しいModelMBeanOperationInfoを作成し、返します。DescriptorgetDescriptor()ModelMBeanOperationInfoに関連付けられたDescriptorのコピーを返します。voidsetDescriptor(Descriptor inDescriptor)ModelMBeanOperationInfoに関連付けられたDescriptor (完全置換)を設定します。新しいDescriptorがnullの場合、関連付けられたDescriptorはデフォルトの記述子に戻ります。StringtoString()人間が読める形式のModelMBeanOperationInfoのコンテンツ全体を含む文字列を返します。
-
コンストラクタの詳細
-
ModelMBeanOperationInfo
デフォルトの記述子でModelMBeanOperationInfoオブジェクトを構築します。 構築されたオブジェクトのDescriptorには、DescriptorKeyメタ注釈を含むMethodオブジェクト上の注釈が寄与するフィールドが含まれます。- パラメータ:
operationMethod- MBeanオペレーションを記述するjava.lang.reflect.Methodオブジェクト。description- 人間が読める形式のオペレーションの説明。
-
ModelMBeanOperationInfo
public ModelMBeanOperationInfo(String description, Method operationMethod, Descriptor descriptor)ModelMBeanOperationInfoオブジェクトを構築します。 構築されたオブジェクトのDescriptorには、DescriptorKeyメタ注釈を含むMethodオブジェクト上の注釈が寄与するフィールドが含まれます。- パラメータ:
operationMethod- MBeanオペレーションを記述するjava.lang.reflect.Methodオブジェクト。description- 人間が読める形式のオペレーションの説明。descriptor- このModelMBeanOperationInfoインスタンス用として適切なメタデータを含むDescriptorインスタンス。 nullの場合、デフォルトの記述子が作成される。 記述子にdisplayNameフィールドまたはroleフィールドが含まれない場合、見つからないフィールドがデフォルト値で追加される。- 例外:
RuntimeOperationsException- IllegalArgumentExceptionをラップする。 記述子が無効である場合、記述子フィールドnameがオペレーション名と等しくない場合、記述子フィールドDescriptorTypeがoperationと等しくない場合、または記述子のオプション・フィールドroleが存在するが、operation、getter、またはsetterと等しくない場合。
-
ModelMBeanOperationInfo
public ModelMBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact)デフォルトの記述子でModelMBeanOperationInfoオブジェクトを構築します。- パラメータ:
name- メソッドの名前。description- 人間が読める形式のオペレーションの説明。signature- メソッドのパラメータ(引数)を記述するMBeanParameterInfoオブジェクト。type- メソッドの戻り値の型。impact- メソッドの影響。INFO、ACTION、ACTION_INFO、UNKNOWNのいずれか。
-
ModelMBeanOperationInfo
public ModelMBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact, Descriptor descriptor)ModelMBeanOperationInfoオブジェクトを構築します。- パラメータ:
name- メソッドの名前。description- 人間が読める形式のオペレーションの説明。signature- メソッドのパラメータ(引数)を記述するMBeanParameterInfoオブジェクト。type- メソッドの戻り値の型。impact- メソッドの影響。INFO、ACTION、ACTION_INFO、UNKNOWNのいずれか。descriptor- このMBeanOperationInfoインスタンス用として適切なメタデータを含むDescriptorインスタンス。 nullの場合、デフォルトの記述子が作成される。 記述子にdisplayNameフィールドまたはroleフィールドが含まれない場合、見つからないフィールドがデフォルト値で追加される。- 例外:
RuntimeOperationsException- IllegalArgumentExceptionをラップする。 記述子が無効である場合、記述子フィールドnameがオペレーション名と等しくない場合、記述子フィールドDescriptorTypeがoperationと等しくない場合、または記述子のオプション・フィールドroleが存在するが、operation、getter、またはsetterと等しくない場合。
-
ModelMBeanOperationInfo
public ModelMBeanOperationInfo(ModelMBeanOperationInfo inInfo)このModelMBeanOperationオブジェクトから新しいModelMBeanOperationInfoオブジェクトを構築します。- パラメータ:
inInfo- 複製されるModelMBeanOperationInfo
-
-
メソッドの詳細
-
clone
public Object clone()このModelMBeanOperationInfoを複製して新しいModelMBeanOperationInfoを作成し、返します。- オーバーライド:
clone、クラス:MBeanOperationInfo- 戻り値:
- このインスタンスの複製。
- 関連項目:
Cloneable
-
getDescriptor
public Descriptor getDescriptor()ModelMBeanOperationInfoに関連付けられたDescriptorのコピーを返します。- 定義:
getDescriptor、インタフェース:DescriptorRead- オーバーライド:
getDescriptor、クラス:MBeanFeatureInfo- 戻り値:
- ModelMBeanOperationInfoオブジェクトに関連付けられたDescriptor。
- 関連項目:
setDescriptor(javax.management.Descriptor)
-
setDescriptor
public void setDescriptor(Descriptor inDescriptor)ModelMBeanOperationInfoに関連付けられたDescriptor (完全置換)を設定します。新しいDescriptorがnullの場合、関連付けられたDescriptorはデフォルトの記述子に戻ります。 Descriptorの割当て前には、妥当性検査が行われます。 新しいDescriptorが無効である場合、IllegalArgumentExceptionをラップするRuntimeOperationsExceptionがスローされます。- 定義:
setDescriptor、インタフェース:DescriptorAccess- パラメータ:
inDescriptor- ModelMBeanOperationに関連付けられたDescriptorを置換する。- 例外:
RuntimeOperationsException- 記述子が無効な場合、IllegalArgumentExceptionをラップする。- 関連項目:
getDescriptor()
-
toString
public String toString()人間が読める形式のModelMBeanOperationInfoのコンテンツ全体を含む文字列を返します。
-