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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。