|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.management.MBeanFeatureInfo
javax.management.MBeanOperationInfo
javax.management.modelmbean.ModelMBeanOperationInfo
public class ModelMBeanOperationInfo
ModelMBeanOperationInfo オブジェクトは、ModelMBean の管理オペレーションを説明します。これは、関連 Descriptor を持ち、DescriptorAccess インタフェースを実装した MBeanOperationInfo のサブクラスです。
記述子内のフィールドは以下のように定義済みですが、この内容に限定されません。 name : オペレーション名 descriptorType : 必ず operation class : メソッドが定義されたクラス (完全修飾) role : 必ず operation、getter、または setter targetObject : メソッドはこのオブジェクトに対して実行される targetType : targetObject のオブジェクト参照型。ObjectReference、Handle、EJBHandle、IOR、RMIReference のいずれか value : オペレーション用としてキャッシュされた値 currencyTimeLimit : キャッシュ値の有効期間 lastUpdatedTimeStamp : キャッシュ値が設定された時刻 visibility : 1 〜 4 の値のうち 1: 常に可視 4: ほとんど不可視 presentationString : オペレーションの表現方法を説明するための XML 形式の文字列デフォルトの記述子は、name、descriptorType、displayName、および role フィールドを設定します。
注: 以前のバージョンの仕様との不整合があるため、currencyTimeLimit にはゼロ以下の値を使用しないようにしてください。キャッシュに入った値が有効でないことを示したい場合は、currencyTimeLimit フィールドを省略します。この値が常に有効であることを示したい場合は、このフィールドに非常に大きい値を指定します。
| フィールドの概要 |
|---|
| クラス javax.management.MBeanOperationInfo から継承されたフィールド |
|---|
ACTION, ACTION_INFO, INFO, UNKNOWN |
| クラス javax.management.MBeanFeatureInfo から継承されたフィールド |
|---|
description, name |
| コンストラクタの概要 | |
|---|---|
ModelMBeanOperationInfo(ModelMBeanOperationInfo inInfo)
この ModelMBeanOperation オブジェクトから新しい ModelMBeanOperationInfo オブジェクトを構築します。 |
|
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 オブジェクトを構築します。 |
|
| メソッドの概要 | |
|---|---|
Object |
clone()
この ModelMBeanOperationInfo を複製して新しい ModelMBeanOperationInfo を作成し、返します。 |
Descriptor |
getDescriptor()
ModelMBeanOperationInfo に関連付けられた Descriptor のコピーを返します。 |
void |
setDescriptor(Descriptor inDescriptor)
ModelMBeanOperationInfo に関連付けられた Descriptor (完全置換) を設定します。 |
String |
toString()
人間が読める形式の ModelMBeanOperationInfo のコンテンツ全体を含む文字列を返します。 |
| クラス javax.management.MBeanOperationInfo から継承されたメソッド |
|---|
equals, getImpact, getReturnType, getSignature, hashCode |
| クラス javax.management.MBeanFeatureInfo から継承されたメソッド |
|---|
getDescription, getName |
| クラス java.lang.Object から継承されたメソッド |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public ModelMBeanOperationInfo(String description,
Method operationMethod)
operationMethod - MBean オペレーションを記述する java.lang.reflect.Method オブジェクトdescription - 人間が読める形式のオペレーションの説明
public ModelMBeanOperationInfo(String description,
Method operationMethod,
Descriptor descriptor)
operationMethod - MBean オペレーションを記述する java.lang.reflect.Method オブジェクトdescription - 人間が読める形式のオペレーションの説明descriptor - この ModelMBeanOperationInfo インスタンス用として適切なメタデータを含む Descriptor インスタンス。null の場合、デフォルトの記述子が作成される。displayName フィールドまたは role フィールドを含まない記述子には、デフォルト値の displayName フィールドまたは role フィールドが追加される
RuntimeOperationsException - IllegalArgumentException をラップする。記述子が無効である場合、記述子フィールド name がオペレーション名と等しくない場合、記述子フィールド DescriptorType が operation と等しくない場合、または記述子フィールド role が operation と等しくない場合
public ModelMBeanOperationInfo(String name,
String description,
MBeanParameterInfo[] signature,
String type,
int impact)
name - メソッドの名前description - 人間が読める形式のオペレーションの説明signature - メソッドのパラメータ (引数) を説明する MBeanParameterInfo オブジェクトtype - メソッドの戻り値の型impact - メソッドの影響。INFO、ACTION、ACTION_INFO、UNKNOWN のいずれか
public ModelMBeanOperationInfo(String name,
String description,
MBeanParameterInfo[] signature,
String type,
int impact,
Descriptor descriptor)
name - メソッドの名前description - 人間が読める形式のオペレーションの説明signature - メソッドのパラメータ (引数) を説明する MBeanParameterInfo オブジェクトtype - メソッドの戻り値の型impact - メソッドの影響。INFO、ACTION、ACTION_INFO、UNKNOWN のいずれかdescriptor - この MBeanOperationInfo インスタンス用として適切なメタデータを含む Descriptor インスタンス。null の場合、デフォルトの記述子が作成される。displayName フィールドまたは role フィールドを含まない記述子には、デフォルト値の displayName フィールドまたは role フィールドが追加される
RuntimeOperationsException - IllegalArgumentException をラップする。記述子が無効である場合、記述子フィールド name がオペレーション名と等しくない場合、記述子フィールド DescriptorType が operation と等しくない場合、または記述子フィールド role が operation と等しくない場合public ModelMBeanOperationInfo(ModelMBeanOperationInfo inInfo)
inInfo - 複製される ModelMBeanOperationInfo| メソッドの詳細 |
|---|
public Object clone()
MBeanOperationInfo 内の cloneCloneablepublic Descriptor getDescriptor()
DescriptorAccess 内の getDescriptorsetDescriptor(javax.management.Descriptor)public void setDescriptor(Descriptor inDescriptor)
DescriptorAccess 内の setDescriptorinDescriptor - ModelMBeanOperation に関連付けられた Descriptor を置換する
RuntimeOperationsException - 無効な Descriptor の IllegalArgumentException をラップするgetDescriptor()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 も参照してください。