java命名空间javax.management.remote.rmi类rmiconnectionimpl的类成员方法:
addnotificationlistener定义及介绍
本文导语:
addnotificationlistener
public void addnotificationlistener(objectname name,
objectname listener,
marshalledobject filter,
marshalledobject handback,
...
addnotificationlistener
public void addnotificationlistener(objectname name,
objectname listener,
marshalledobject filter,
marshalledobject handback,
subject delegationsubject)
throws instancenotfoundexception,
ioexception
- 从接口
rmiconnection 复制的描述
- 处理
mbeanserverconnection.addnotificationlistener(objectname, objectname, notificationfilter, object) 方法。notificationfilter 参数包装在 marshalledobject 中。object (handback) 参数也包装在 marshalledobject 中。
- 指定者:
- 接口
rmiconnection 中的 addnotificationlistener
- 参数:
name - 应在其上添加侦听器的 mbean 的名称。listener - 将处理由已注册的 mbean 发出通知的侦听器的对象名。filter - 过滤器对象,封装在 marshalledobject 中。如果封装在 marshalledobject 中的过滤器的值为 null,则在对通知处理之前不执行任何过滤。handback - 通知发出时发送到侦听器的上下文,封装在 marshalledobject 中。delegationsubject - 包含委托 principal 的 subject,如果使用了验证 principal,则为 null。
- 抛出:
instancenotfoundexception - 通知侦听器或通知广播器的 mbean 名称不与注册的任何 mbean 匹配。
ioexception - 如果出现通用通信异常。- 另请参见:
rmiconnection.removenotificationlistener(objectname, objectname, subject),
rmiconnection.removenotificationlistener(objectname, objectname, marshalledobject, marshalledobject, subject)