JavaTM Platform
Standard Ed. 6

javax.management.remote
クラス TargetedNotification

java.lang.Object
  上位を拡張 javax.management.remote.TargetedNotification
すべての実装されたインタフェース:
Serializable

public class TargetedNotification
extends Object
implements Serializable

通知とリスナー ID のペア (Notification, Listener ID) です。

このクラスは、発行された通知と、そのターゲットのリスナーのリスナー ID を関連付けるために使用されます。

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

コンストラクタの概要
TargetedNotification(Notification notification, Integer listenerID)
          TargetedNotification オブジェクトを構築します。
 
メソッドの概要
 Integer getListenerID()
          通知のターゲットとなるリスナーの ID です。
 Notification getNotification()
          発行された通知
 String toString()
          この Targeted Notification のテキスト表現を返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

TargetedNotification

public TargetedNotification(Notification notification,
                            Integer listenerID)

TargetedNotification オブジェクトを構築します。このオブジェクトには、通知とリスナー ID のペア (Notification, Listener ID) が含まれます。リスナー ID は、その通知のターゲットとなるクライアントリスナーを識別します。クライアントリスナー ID は、以前に addNotificationListener 要求への応答としてコネクタサーバーから返された ID です。

パラメータ:
notification - MBean サーバーから発行された通知
listenerID - この通知のターゲットとなる リスナーの ID
例外:
IllegalArgumentException - listenerID または notification が null の場合
メソッドの詳細

getNotification

public Notification getNotification()

発行された通知

戻り値:
通知

getListenerID

public Integer getListenerID()

通知のターゲットとなるリスナーの ID です。

戻り値:
リスナー ID

toString

public String toString()
この Targeted Notification のテキスト表現を返します。

オーバーライド:
クラス Object 内の toString
戻り値:
この Targeted Notification の String 表現

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 も参照してください。