|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.util.EventObject
javax.management.Notification
javax.management.AttributeChangeNotification
public class AttributeChangeNotification
MBean によって送信される属性変更通知を定義します。
属性が変更されたとき属性変更通知を作成し、送信するのは、その属性を所有する MBean です。したがって、属性が変更される MBean は、NotificationBroadcaster インタフェースを実装する必要があります。
例: MBean によって呼び出される myMbean は、次の属性が変更されたとき、登録済みのリスナーに通知を送る必要があります。
String myString myMbean によって作成され、送信される通知の内容は次のとおりです。 new AttributeChangeNotification(myMbean, sequenceNumber, timeStamp, msg, "myString", "String", oldValue, newValue);
| フィールドの概要 | |
|---|---|
static String |
ATTRIBUTE_CHANGE
監視対象の MBean 属性値が変更されたことを示す通知型です。 |
| クラス javax.management.Notification から継承されたフィールド |
|---|
source |
| コンストラクタの概要 | |
|---|---|
AttributeChangeNotification(Object source,
long sequenceNumber,
long timeStamp,
String msg,
String attributeName,
String attributeType,
Object oldValue,
Object newValue)
属性変更通知オブジェクトを構築します。 |
|
| メソッドの概要 | |
|---|---|
String |
getAttributeName()
変更された属性の名前を取得します。 |
String |
getAttributeType()
変更された属性の型を取得します。 |
Object |
getNewValue()
変更された属性の新しい値を取得します。 |
Object |
getOldValue()
変更された属性の古い値を取得します。 |
| クラス javax.management.Notification から継承されたメソッド |
|---|
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString |
| クラス java.util.EventObject から継承されたメソッド |
|---|
getSource |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final String ATTRIBUTE_CHANGE
jmx.attribute.change です。
| コンストラクタの詳細 |
|---|
public AttributeChangeNotification(Object source,
long sequenceNumber,
long timeStamp,
String msg,
String attributeName,
String attributeType,
Object oldValue,
Object newValue)
source - 通知の作成元。その属性を所有する MBeansequenceNumber - ソースオブジェクト内の通知シーケンス番号timeStamp - 通知が送信される日付msg - 通知のメッセージを含む StringattributeName - 属性の名前を指定する StringattributeType - 属性の型を含む StringoldValue - 属性の変更前の値を示すオブジェクトnewValue - 属性の変更後の値を示すオブジェクト| メソッドの詳細 |
|---|
public String getAttributeName()
public String getAttributeType()
public Object getOldValue()
public Object getNewValue()
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。