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を使用することもできます。
名前 | 型 | 意味 |
---|---|---|
name | String | 通知名。 |
descriptorType | String | 必ずnotification。 |
severity | Number | 0 - 6の値のうち0: 未知、1:回復不能、2:クリティカル、障害、3:メジャー、重大、4:マイナー、非重要、エラー、5:警告、6:通常、クリア済み、情報 |
messageID | String | メッセージ・テキストの一意のキー(翻訳、分析用)。 |
messageText | String | 通知テキスト。 |
log | String | T - メッセージをログに記録、F - メッセージを記録しない。 |
logfile | String | オペレーティング・システムに適した完全修飾ファイル名。 |
visibility | Number | 1 - 4の値のうち1: 常に可視4:ほとんど不可視。 |
presentationString | String | データ表現を可能にするためのXML形式の文字列。 |
デフォルトの記述子には、name、descriptorType、displayName、およびseverity(=6)フィールドが含まれます。 nameおよびdisplayNameフィールドのデフォルト値は、(ModelMBeanNotificationInfoコンストラクタのname
パラメータで指定された) Notificationクラスの名前です。
このクラスのserialVersionUIDは-7445681389570207141L
です。
- 導入されたバージョン:
- 1.5
- 関連項目:
-
フィールドのサマリー
クラス javax.management.MBeanFeatureInfoで宣言されたフィールド
description, name
-
コンストラクタのサマリー
コンストラクタ説明ModelMBeanNotificationInfo
(String[] notifTypes, String name, String description) デフォルトの記述子でModelMBeanNotificationInfoオブジェクトを構築します。ModelMBeanNotificationInfo
(String[] notifTypes, String name, String description, Descriptor descriptor) ModelMBeanNotificationInfoオブジェクトを構築します。このModelMBeanNotificationInfoオブジェクトから新しいModelMBeanNotificationオブジェクトを構築します。 -
メソッドのサマリー
修飾子と型メソッド説明clone()
このModelMBeanNotificationInfoを複製して新しいModelMBeanNotificationInfoを作成し、返します。ModelMBeanNotificationInfoに関連付けられたDescriptorのコピーを返します。void
setDescriptor
(Descriptor inDescriptor) ModelMBeanNotificationInfoに関連付けられたDescriptor (完全置換)を設定します。新しいDescriptorがnullの場合、関連付けられたDescriptorはデフォルトの記述子に戻ります。toString()
ModelMBeanNotificationInfoを含む人間が読める形式の文字列を返します。クラス javax.management.MBeanNotificationInfoで宣言されたメソッド
equals, getNotifTypes
クラス javax.management.MBeanFeatureInfoで宣言されたメソッド
getDescription, getName
-
コンストラクタの詳細
-
ModelMBeanNotificationInfo
デフォルトの記述子で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を含む人間が読める形式の文字列を返します。
-