JavaTM Platform
Standard Ed. 6

javax.management.modelmbean
クラス 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 のサブクラスです。

記述子内のフィールドは以下のように定義済みですが、この内容に限定されません。

 name           :通知名 
 descriptorType :必ず notification
 severity       :0 〜 6 の値のうち 0:未知、1:回復不能、
                  2: クリティカル、障害、3:メジャー、重大、
                  4: マイナー、非重要、エラー、5:警告、
                  6: 通常、クリア済み、情報
 messageID      :メッセージテキストの一意のキー (翻訳、
                  分析用)
 messageText    :通知テキスト
 log            :T - メッセージをログに記録 F - メッセージを記録しない
 logfile        :オペレーティングシステムに適した完全修飾ファイル名の 
                  文字列
 visibility     :1 〜 4 の値のうち 1:常に可視 4:ほとんど不可視
 presentationString :データ表現を可能にするための XML 形式の文字列
 
デフォルトの記述子には、name、descriptorType、displayName、および severity(=6) フィールドが含まれます。

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

導入されたバージョン:
1.5
関連項目:
直列化された形式

フィールドの概要
 
クラス javax.management.MBeanFeatureInfo から継承されたフィールド
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 (完全置換) を設定します。
 String toString()
          ModelMBeanNotificationInfo を含む人間が読める形式の文字列を返します。
 
クラス javax.management.MBeanNotificationInfo から継承されたメソッド
equals, getNotifTypes, hashCode
 
クラス javax.management.MBeanFeatureInfo から継承されたメソッド
getDescription, getName
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

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 - この MBeanOperationInfo インスタンス用として 適切なメタデータを含む Descriptor インスタンス。null の場合、 デフォルトの記述子が作成される。displayName フィールドまたは severity フィールドを含まない記述子には、 デフォルト値の displayName フィールドまたは severity フィールドが 追加される
例外:
RuntimeOperationsException - IllegalArgumentException を ラップする。記述子が無効である場合、 記述子フィールド name がパラメータ name と等しくない場合、 記述子フィールド DescriptorType が notification と等しくない場合

ModelMBeanNotificationInfo

public ModelMBeanNotificationInfo(ModelMBeanNotificationInfo inInfo)
この ModelMBeanNotificationInfo オブジェクトから新しい ModelMBeanNotification オブジェクトを構築します。

パラメータ:
inInfo - 複製される ModelMBeanNotificationInfo
メソッドの詳細

clone

public Object clone()
この ModelMBeanNotificationInfo を複製して新しい ModelMBeanNotificationInfo を作成し、返します。

オーバーライド:
クラス MBeanNotificationInfo 内の clone
戻り値:
このインスタンスの複製
関連項目:
Cloneable

getDescriptor

public Descriptor getDescriptor()
ModelMBeanNotificationInfo に関連付けられた Descriptor のコピーを返します。

定義:
インタフェース DescriptorRead 内の getDescriptor
オーバーライド:
クラス MBeanFeatureInfo 内の getDescriptor
戻り値:
ModelMBeanNotificationInfo オブジェクトに 関連付けられた Descriptor
関連項目:
setDescriptor(javax.management.Descriptor)

setDescriptor

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

定義:
インタフェース DescriptorAccess 内の setDescriptor
パラメータ:
inDescriptor - ModelMBeanNotification インタフェースに関連付けられた Descriptor を 置換する
例外:
RuntimeOperationsException - 無効な Descriptor の IllegalArgumentException をラップする
関連項目:
getDescriptor()

toString

public String toString()
ModelMBeanNotificationInfo を含む人間が読める形式の文字列を返します。

オーバーライド:
クラス MBeanNotificationInfo 内の toString
戻り値:
このオブジェクトを説明する文字列

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。