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 です。
description, name| コンストラクタと説明 |
|---|
ModelMBeanNotificationInfo(ModelMBeanNotificationInfo inInfo)
この ModelMBeanNotificationInfo オブジェクトから新しい ModelMBeanNotification オブジェクトを構築します。
|
ModelMBeanNotificationInfo(String[] notifTypes, String name, String description)
デフォルトの記述子で ModelMBeanNotificationInfo オブジェクトを構築します。
|
ModelMBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)
ModelMBeanNotificationInfo オブジェクトを構築します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
Object |
clone()
この ModelMBeanNotificationInfo を複製して新しい ModelMBeanNotificationInfo を作成し、返します。
|
Descriptor |
getDescriptor()
ModelMBeanNotificationInfo に関連付けられた Descriptor のコピーを返します。
|
void |
setDescriptor(Descriptor inDescriptor)
ModelMBeanNotificationInfo に関連付けられた Descriptor (完全置換) を設定します。新しい Descriptor が null の場合、関連付けられた Descriptor はデフォルトの記述子に戻ります。
|
String |
toString()
ModelMBeanNotificationInfo を含む人間が読める形式の文字列を返します。
|
equals, getNotifTypes, hashCodegetDescription, getNamepublic ModelMBeanNotificationInfo(String[] notifTypes, String name, String description)
notifTypes - 発行される可能性がある通知型を含むドット表記形式の文字配列。name - Notification クラスの名前。description - 人間が読める形式の Notification の説明。オプション。public ModelMBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)
notifTypes - 発行される可能性がある通知型を含むドット表記形式の文字配列。name - Notification クラスの名前。description - 人間が読める形式の Notification の説明。オプション。descriptor - この MBeanNotificationInfo インスタンス用として適切なメタデータを含む Descriptor インスタンス。null の場合、デフォルトの記述子が作成される。記述子に displayName フィールドまたは severity フィールドが含まれない場合、見つからないフィールドがデフォルト値で追加される。RuntimeOperationsException - IllegalArgumentException をラップする場合。記述子が無効である場合、記述子フィールド name がパラメータ name と等しくない場合、記述子フィールド descriptorType が notification と等しくない場合。public ModelMBeanNotificationInfo(ModelMBeanNotificationInfo inInfo)
inInfo - 複製される ModelMBeanNotificationInfopublic Object clone()
clone、クラス: MBeanNotificationInfoCloneablepublic Descriptor getDescriptor()
getDescriptor、インタフェース: DescriptorReadgetDescriptor、クラス: MBeanFeatureInfosetDescriptor(javax.management.Descriptor)public void setDescriptor(Descriptor inDescriptor)
setDescriptor、インタフェース: DescriptorAccessinDescriptor - ModelMBeanNotification インタフェースに関連付けられた Descriptor を置換するRuntimeOperationsException - 無効な Descriptor の IllegalArgumentException をラップする場合。getDescriptor()public String toString()
toString、クラス: MBeanNotificationInfo バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.