クラスModelMBeanAttributeInfo

すべての実装されたインタフェース:
Serializable, Cloneable, DescriptorAccess, DescriptorRead

public class ModelMBeanAttributeInfo extends MBeanAttributeInfo implements DescriptorAccess

ModelMBeanAttributeInfoオブジェクトは、ModelMBeanの属性を記述します。 これは、関連Descriptorを持ち、DescriptorAccessインタフェースを実装したMBeanAttributeInfoのサブクラスです。

記述子内のフィールドは次のように定義済みですが、この内容に限定されません。 この表で型がNumberである場合は、Longの10進数表現であるStringを使用することもできます。

ModelMBeanAttributeInfoフィールド
名前意味
nameString 属性名
descriptorTypeString 必ず"attribute"。
valueObject 属性の現在値(キャッシュ値)。
defaultObject 属性のデフォルト値。
displayNameString ディスプレイで使用される属性の名前。
getMethodString getメソッドのオペレーション記述子の名前。
setMethodString setメソッドのオペレーション記述子の名前
protocolMapDescriptor JMX仕様ドキュメントの「Protocol Map Support」を参照。 属性に適したマッピングでなければならない。エントリは実行時に更新または追加可能。
persistPolicyString 次のどれか: OnUpdate|OnTimer|NoMoreOftenThan|OnUnregister|Always|Never。 JMX仕様ドキュメントの「MBean Descriptor Fields」を参照。
persistPeriodNumber 永続サイクルの頻度(秒単位)。 persistPolicyがOnTimerまたはNoMoreOftenThanのとき使用。
currencyTimeLimitNumber の有効期間(<0無効、=0常に有効、>0秒)。
lastUpdatedTimeStampNumber valueが設定された時刻。
visibilityNumber 1 - 4の値のうち1: 常に可視、4: ほとんど不可視。
presentationStringString データ表現を可能にするためのXML形式の文字列。

デフォルトの記述子には、name、descriptorType、およびdisplayNameフィールドが含まれます。 nameおよびdisplayNameフィールドのデフォルト値は、属性の名前です。

ノート: 以前のバージョンの仕様との不整合があるため、currencyTimeLimitにはゼロ以下の値を使用しないようにしてください。 キャッシュに入った値が有効でないことを示す場合は、currencyTimeLimitフィールドを省略します。 この値が常に有効であることを示す場合は、このフィールドに非常に大きい値を指定します。

このクラスのserialVersionUID6181543027787327345Lです。

導入されたバージョン:
1.5
関連項目:
  • フィールドのサマリー

    クラスで宣言されたフィールド MBeanFeatureInfo

    description, name
    修飾子と型
    フィールド
    説明
    protected String
    人間が読める形式の機能の説明。
    protected String
    機能の名前。
  • コンストラクタのサマリー

    コンストラクタ
    コンストラクタ
    説明
    ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter)
    デフォルトの記述子でModelMBeanAttributeInfoオブジェクトを構築します。
    ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter, Descriptor descriptor)
    ModelMBeanAttributeInfoオブジェクトを構築します。
    ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs)
    デフォルトの記述子でModelMBeanAttributeInfoオブジェクトを構築します。
    ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor)
    ModelMBeanAttributeInfoオブジェクトを構築します。
    このModelMBeanAttributeInfo Objectから新しいModelMBeanAttributeInfoオブジェクトを構築します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    このModelMBeanAttributeInfoを複製して新しいModelMBeanAttributeInfoを作成し、返します。
    ModelMBeanAttributeInfoに関連付けられたDescriptorのコピーを取得します。
    void
    setDescriptor(Descriptor inDescriptor)
    ModelMBeanAttributeDescriptorに関連付けられたDescriptor (完全置換)を設定します。
    人間が読める形式のModelMBeanAttributeInfoインスタンスを返します。

    クラスで宣言されたメソッド MBeanAttributeInfo

    equals, getType, isIs, isReadable, isWritable
    修飾子と型
    メソッド
    説明
    boolean
    このMBeanAttributeInfoを別のMBeanAttributeInfoと比較します。
    属性のクラス名を返します。
    boolean
    この属性が「is」getterを持つかどうかを示します。
    boolean
    属性値が読取り可能かどうかを示します。
    boolean
    属性に新しい値を書き込めるかどうかを示します。

    クラスで宣言されたメソッド MBeanFeatureInfo

    getDescription, getName
    修飾子と型
    メソッド
    説明
    人間が読める形式の機能の説明を返します。
    機能の名前を返します。

    クラスオブジェクトで宣言されたメソッド

    finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    修飾子と型
    メソッド
    説明
    protected void
    削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。
    最終決定は非推奨であり、将来のリリースで削除される可能性があります。
    final Class<?>
    このObjectの実行時クラスを返します。
    int
    このオブジェクトに対するハッシュ・コード値を返します。
    final void
    このオブジェクトのモニターで待機中のスレッドを1つ再開します。
    final void
    このオブジェクトのモニターで待機中のすべてのスレッドを再開します。
    final void
    現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。
    final void
    wait(long timeoutMillis)
    現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
    final void
    wait(long timeoutMillis, int nanos)
    現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
  • コンストラクタの詳細

    • ModelMBeanAttributeInfo

      public ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter) throws IntrospectionException
      デフォルトの記述子でModelMBeanAttributeInfoオブジェクトを構築します。 構築されたオブジェクトのDescriptorには、DescriptorKeyメタ注釈を含むMethodオブジェクト上の注釈が寄与するフィールドが含まれます。
      パラメータ:
      name - 属性の名前。
      description - 人間が読める形式の属性の説明。 オプション。
      getter - 属性値の読込みに使用するメソッド。 属性が書込み専用の場合はnull。
      setter - 属性値の書込みに使用するメソッド。 属性が読取り専用の場合はnull。
      スロー:
      IntrospectionException - この属性の定義に整合性の問題がある場合。
    • ModelMBeanAttributeInfo

      public ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter, Descriptor descriptor) throws IntrospectionException
      ModelMBeanAttributeInfoオブジェクトを構築します。 構築されたオブジェクトのDescriptorには、DescriptorKeyメタ注釈を含むMethodオブジェクト上の注釈が寄与するフィールドが含まれます。
      パラメータ:
      name - 属性の名前。
      description - 人間が読める形式の属性の説明。 オプション。
      getter - 属性値の読込みに使用するメソッド。 属性が書込み専用の場合はnull。
      setter - 属性値の書込みに使用するメソッド。 属性が読取り専用の場合はnull。
      descriptor - このAttributeインスタンス用として適切なメタデータを含むDescriptorインスタンス。 nullの場合、デフォルトの記述子が作成される。 displayNameフィールドを持たない記述子には、displayNameフィールドがデフォルト値で追加される。
      スロー:
      IntrospectionException - この属性の定義に整合性の問題がある場合。
      RuntimeOperationsException - IllegalArgumentExceptionをラップする。 記述子が無効である場合、記述子フィールドnameがnameパラメータと等しくない場合、または記述子フィールドdescriptorTypeがattributeと等しくない場合。
    • ModelMBeanAttributeInfo

      public ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs)
      デフォルトの記述子でModelMBeanAttributeInfoオブジェクトを構築します。
      パラメータ:
      name - 属性の名前
      type - 属性の型またはクラス名
      description - 人間が読める形式の属性の説明。
      isReadable - 属性がgetterメソッドを持つ場合はtrue、そうでない場合はfalse。
      isWritable - 属性がsetterメソッドを持つ場合はtrue、そうでない場合はfalse。
      isIs - 属性がis取得メソッドを持つ場合はtrue、そうでない場合はfalse。
    • ModelMBeanAttributeInfo

      public ModelMBeanAttributeInfo(String name, String type, String description, boolean isReadable, boolean isWritable, boolean isIs, Descriptor descriptor)
      ModelMBeanAttributeInfoオブジェクトを構築します。
      パラメータ:
      name - 属性の名前
      type - 属性の型またはクラス名
      description - 人間が読める形式の属性の説明。
      isReadable - 属性がgetterメソッドを持つ場合はtrue、そうでない場合はfalse。
      isWritable - 属性がsetterメソッドを持つ場合はtrue、そうでない場合はfalse。
      isIs - 属性がis取得メソッドを持つ場合はtrue、そうでない場合はfalse。
      descriptor - このAttributeインスタンス用として適切なメタデータを含むDescriptorインスタンス。 nullの場合、デフォルトの記述子が作成される。 displayNameフィールドを持たない記述子には、displayNameフィールドがデフォルト値で追加される。
      スロー:
      RuntimeOperationsException - IllegalArgumentExceptionをラップする。 記述子が無効である場合、記述子フィールドnameがnameパラメータと等しくない場合、または記述子フィールドdescriptorTypeがattributeと等しくない場合。
    • ModelMBeanAttributeInfo

      public ModelMBeanAttributeInfo(ModelMBeanAttributeInfo inInfo)
      このModelMBeanAttributeInfo Objectから新しいModelMBeanAttributeInfoオブジェクトを構築します。 デフォルトの記述子が作成されます。
      パラメータ:
      inInfo - 複製されるModelMBeanAttributeInfo
  • メソッドの詳細

    • getDescriptor

      public Descriptor getDescriptor()
      ModelMBeanAttributeInfoに関連付けられたDescriptorのコピーを取得します。
      定義:
      getDescriptor、インタフェースDescriptorRead
      オーバーライド:
      getDescriptor、クラスMBeanFeatureInfo
      戻り値:
      ModelMBeanAttributeInfoオブジェクトに関連付けられたDescriptor。
      関連項目:
    • setDescriptor

      public void setDescriptor(Descriptor inDescriptor)
      ModelMBeanAttributeDescriptorに関連付けられたDescriptor (完全置換)を設定します。 新しいDescriptorがnullの場合、関連Descriptorはデフォルトの記述子に戻ります。 Descriptorの割当て前には、妥当性検査が行われます。 新しいDescriptorが無効である場合、IllegalArgumentExceptionをラップするRuntimeOperationsExceptionがスローされます。
      定義:
      setDescriptor、インタフェースDescriptorAccess
      パラメータ:
      inDescriptor - ModelMBeanAttributeInfoに関連付けられたDescriptorを置換する
      スロー:
      RuntimeOperationsException - 無効なDescriptorのIllegalArgumentExceptionをラップする
      関連項目:
    • clone

      public Object clone()
      このModelMBeanAttributeInfoを複製して新しいModelMBeanAttributeInfoを作成し、返します。
      オーバーライド:
      clone、クラスMBeanAttributeInfo
      戻り値:
      このインスタンスの複製。
      スロー:
      RuntimeOperationsException - フィールド名またはフィールド値が不正である場合。 何らかの理由で記述子の作成に失敗した場合、この例外がスローされる。
      関連項目:
    • toString

      public String toString()
      人間が読める形式のModelMBeanAttributeInfoインスタンスを返します。
      オーバーライド:
      toString、クラスObject
      戻り値:
      このオブジェクトの文字列表現