クラスModelMBeanNotificationInfo

java.lang.Object
javax.management.MBeanFeatureInfo
javax.management.MBeanNotificationInfo
javax.management.modelmbean.ModelMBeanNotificationInfo
すべての実装されたインタフェース:
Serializable, Cloneable, DescriptorAccess, DescriptorRead

public class ModelMBeanNotificationInfo extends MBeanNotificationInfo implements DescriptorAccess

ModelMBeanNotificationInfoオブジェクトは、ModelMBeanが発行する通知を記述します。 これは、関連Descriptorを持ち、Descriptorインタフェースを実装したMBeanNotificationInfoのサブクラスです。

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

ModelMBeanNotificationInfoフィールド
名前意味
nameString 通知名。
descriptorTypeString 必ずnotification。
severityNumber 0 - 6の値のうち0: 未知、1:回復不能、2:クリティカル、障害、3:メジャー、重大、4:マイナー、非重要、エラー、5:警告、6:通常、クリア済み、情報
messageIDString メッセージ・テキストの一意のキー(翻訳、分析用)。
messageTextString 通知テキスト。
logString T - メッセージをログに記録、F - メッセージを記録しない。
logfileString オペレーティング・システムに適した完全修飾ファイル名。
visibilityNumber 1 - 4の値のうち1: 常に可視4:ほとんど不可視。
presentationStringString データ表現を可能にするためのXML形式の文字列。

デフォルトの記述子には、name、descriptorType、displayName、およびseverity(=6)フィールドが含まれます。 nameおよびdisplayNameフィールドのデフォルト値は、(ModelMBeanNotificationInfoコンストラクタのnameパラメータで指定された) Notificationクラスの名前です。

このクラスのserialVersionUID-7445681389570207141Lです。

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

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

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

    コンストラクタ
    コンストラクタ
    説明
    ModelMBeanNotificationInfo(String[] notifTypes, String name, String description)
    デフォルトの記述子でModelMBeanNotificationInfoオブジェクトを構築します。
    ModelMBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)
    ModelMBeanNotificationInfoオブジェクトを構築します。
    このModelMBeanNotificationInfoオブジェクトから新しいModelMBeanNotificationオブジェクトを構築します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    このModelMBeanNotificationInfoを複製して新しいModelMBeanNotificationInfoを作成し、返します。
    ModelMBeanNotificationInfoに関連付けられたDescriptorのコピーを返します。
    void
    setDescriptor(Descriptor inDescriptor)
    ModelMBeanNotificationInfoに関連付けられたDescriptor (完全置換)を設定します。新しいDescriptorがnullの場合、関連付けられたDescriptorはデフォルトの記述子に戻ります。
    ModelMBeanNotificationInfoを含む人間が読める形式の文字列を返します。

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

    equals, getNotifTypes
    修飾子と型
    メソッド
    説明
    boolean
    このMBeanNotificationInfoを別のMBeanNotificationInfoと比較します。
    MBeanによって発行される通知型を含む、ドット表記形式の文字列配列を返します。

    クラスで宣言されたメソッド 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であるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
  • コンストラクタの詳細

    • ModelMBeanNotificationInfo

      public ModelMBeanNotificationInfo(String[] notifTypes, String name, String description)
      デフォルトの記述子でModelMBeanNotificationInfoオブジェクトを構築します。
      パラメータ:
      notifTypes - 発行される可能性がある通知型を含むドット表記形式の文字配列。
      name - Notificationクラスの名前。
      description - 人間が読める形式のNotificationの説明。 オプション。
    • ModelMBeanNotificationInfo

      public ModelMBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)
      ModelMBeanNotificationInfoオブジェクトを構築します。
      パラメータ:
      notifTypes - 発行される可能性がある通知型を含むドット表記形式の文字配列。
      name - Notificationクラスの名前。
      description - 人間が読める形式のNotificationの説明。 オプション。
      descriptor - このMBeanNotificationInfoインスタンス用として適切なメタデータを含むDescriptorインスタンス。 nullの場合、デフォルトの記述子が作成される。 記述子にdisplayNameフィールドまたはseverityフィールドが含まれない場合、見つからないフィールドがデフォルト値で追加される。
      スロー:
      RuntimeOperationsException - IllegalArgumentExceptionをラップする場合。 記述子が無効である場合、記述子フィールドnameがパラメータnameと等しくない場合、記述子フィールドdescriptorTypeがnotificationと等しくない場合。
    • ModelMBeanNotificationInfo

      public ModelMBeanNotificationInfo(ModelMBeanNotificationInfo inInfo)
      このModelMBeanNotificationInfoオブジェクトから新しいModelMBeanNotificationオブジェクトを構築します。
      パラメータ:
      inInfo - 複製されるModelMBeanNotificationInfo
  • メソッドの詳細

    • clone

      public Object clone()
      このModelMBeanNotificationInfoを複製して新しいModelMBeanNotificationInfoを作成し、返します。
      オーバーライド:
      clone、クラスMBeanNotificationInfo
      戻り値:
      このインスタンスの複製。
      関連項目:
    • getDescriptor

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

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

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