モジュール java.management

クラス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
関連項目:
直列化された形式
  • コンストラクタの詳細

    • 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
      戻り値:
      このインスタンスの複製。
      関連項目:
      Cloneable
    • getDescriptor

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

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

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