JavaTM 2 Platform
Standard Ed. 6

javax.management.remote
类 TargetedNotification

java.lang.Object
  继承者 javax.management.remote.TargetedNotification
所有已实现的接口:
Serializable

public class TargetedNotification
extends Object
implements Serializable

一个 (Notification, Listener ID) 对。

此类用于将一个发出的通知与通知所定向的侦听器 ID 进行关联。

从以下版本开始:
1.5
另请参见:
序列化表格

构造方法摘要
TargetedNotification(Notification notification, Integer listenerID)
          构造一个 TargetedNotification 对象。
 
方法摘要
 Integer getListenerID()
          此通知所定向的侦听器的 ID。
 Notification getNotification()
          发出的通知。
 String toString()
          返回此定向通知的一个文本表示形式。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

TargetedNotification

public TargetedNotification(Notification notification,
                            Integer listenerID)

构造一个 TargetedNotification 对象。此对象包含一个 (Notification, Listener ID) 对。Listener ID 标识通知所定向的客户端侦听器。客户端侦听器 ID 是作为对 addNotificationListener 请求的响应原先从连接器服务器返回的一个 ID。

参数:
notification - 从 MBean 服务器发出的通知。
listenerID - 此通知所定向的侦听器的 ID。
抛出:
IllegalArgumentException - 如果 listenerIDnotification 为 null。
方法详细信息

getNotification

public Notification getNotification()

发出的通知。

返回:
通知。

getListenerID

public Integer getListenerID()

此通知所定向的侦听器的 ID。

返回:
侦听器 ID。

toString

public String toString()
返回此定向通知的一个文本表示形式。

覆盖:
Object 中的 toString
返回:
此定向的通知的一个文本表示形式。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only