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
です。
ACTION, ACTION_INFO, INFO, UNKNOWN
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 (完全置換)を設定します。新しいDescriptorがnullの場合、関連付けられたDescriptorはデフォルトの記述子に戻ります。
|
String |
toString() |
人間が読める形式のModelMBeanOperationInfoのコンテンツ全体を含む文字列を返します。
|
equals, getImpact, getReturnType, getSignature, hashCode
getDescription, getName
public ModelMBeanOperationInfo(String description, Method operationMethod)
Descriptor
には、DescriptorKey
メタ注釈を含むMethod
オブジェクト上の注釈が寄与するフィールドが含まれます。 operationMethod
- MBeanオペレーションを記述するjava.lang.reflect.Methodオブジェクト。description
- 人間が読める形式のオペレーションの説明。public ModelMBeanOperationInfo(String description, Method operationMethod, Descriptor descriptor)
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と等しくない場合。 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フィールドが含まれない場合、見つからないフィールドがデフォルト値で追加される。 RuntimeOperationsException
- IllegalArgumentExceptionをラップする。 記述子が無効である場合、記述子フィールドnameがオペレーション名と等しくない場合、記述子フィールドDescriptorTypeがoperationと等しくない場合、または記述子のオプション・フィールドroleが存在するが、operation、getter、またはsetterと等しくない場合。 public ModelMBeanOperationInfo(ModelMBeanOperationInfo inInfo)
inInfo
- 複製されるModelMBeanOperationInfopublic Object clone()
clone
、クラスMBeanOperationInfo
Cloneable
public Descriptor getDescriptor()
getDescriptor
、インタフェースDescriptorRead
getDescriptor
、クラスMBeanFeatureInfo
setDescriptor(javax.management.Descriptor)
public void setDescriptor(Descriptor inDescriptor)
setDescriptor
、インタフェースDescriptorAccess
inDescriptor
- ModelMBeanOperationに関連付けられたDescriptorを置換する。RuntimeOperationsException
- 記述子が無効な場合、IllegalArgumentExceptionをラップする。getDescriptor()
public String toString()
toString
、クラスMBeanOperationInfo
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。