JavaTM 2 Platform
Standard Ed. 6

接口 javax.management.NotificationListener
的使用

使用 NotificationListener 的软件包
javax.management 提供 Java Management Extensions 的核心类。 
javax.management.modelmbean 提供了 ModelMBean 类的定义。 
javax.management.relation 提供 Relation Service 的定义。 
javax.management.remote 对 JMX MBean 服务器进行远程访问使用的接口。 
javax.management.remote.rmi RMI 连接器是供 JMX Remote API 使用的一种连接器,后者使用 RMI 将客户端请求传输到远程 MBean 服务器。 
 

javax.managementNotificationListener 的使用
 

参数类型为 NotificationListenerjavax.management 中的方法
 void MBeanServerDelegate.addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void NotificationBroadcaster.addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
          在此 MBean 中添加一个侦听器。
 void NotificationBroadcasterSupport.addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
          添加一个侦听器。
 void StandardEmitterMBean.addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void MBeanServer.addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
           
 void MBeanServerConnection.addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
          向已注册的 MBean 添加一个侦听器。
protected  void NotificationBroadcasterSupport.handleNotification(NotificationListener listener, Notification notif, Object handback)
          为了向侦听器发送通知,由该侦听器的 sendNotification 调用此方法。
 void MBeanServerDelegate.removeNotificationListener(NotificationListener listener)
           
 void NotificationBroadcaster.removeNotificationListener(NotificationListener listener)
          从此 MBean 移除一个侦听器。
 void NotificationBroadcasterSupport.removeNotificationListener(NotificationListener listener)
           
 void StandardEmitterMBean.removeNotificationListener(NotificationListener listener)
           
 void MBeanServerDelegate.removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void NotificationBroadcasterSupport.removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void NotificationEmitter.removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
          从此 MBean 移除一个侦听器。
 void StandardEmitterMBean.removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void MBeanServer.removeNotificationListener(ObjectName name, NotificationListener listener)
           
 void MBeanServerConnection.removeNotificationListener(ObjectName name, NotificationListener listener)
          从已注册的 MBean 中移除一个侦听器。
 void MBeanServer.removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
           
 void MBeanServerConnection.removeNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
          从已注册的 MBean 中移除一个侦听器。
 

javax.management.modelmbeanNotificationListener 的使用
 

参数类型为 NotificationListenerjavax.management.modelmbean 中的方法
 void ModelMBeanNotificationBroadcaster.addAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback)
          注册一个将 NotificationListener 接口实现为侦听器的对象。
 void RequiredModelMBean.addAttributeChangeNotificationListener(NotificationListener inlistener, String inAttributeName, Object inhandback)
           
 void RequiredModelMBean.addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
          注册一个将 NotificationListener 接口实现为侦听器的对象。
 void ModelMBeanNotificationBroadcaster.removeAttributeChangeNotificationListener(NotificationListener listener, String attributeName)
          从 RequiredModelMBean 移除一个 attributeChangeNotifications 的侦听器。
 void RequiredModelMBean.removeAttributeChangeNotificationListener(NotificationListener inlistener, String inAttributeName)
           
 void RequiredModelMBean.removeNotificationListener(NotificationListener listener)
          从 RequiredModelMBean 移除一个 Notification 的侦听器。
 void RequiredModelMBean.removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 

javax.management.relationNotificationListener 的使用
 

实现 NotificationListenerjavax.management.relation 中的类
 class RelationService
          Relation Service 负责创建和删除关系类型和关系,负责处理一致性并负责提供查询机制。
 

javax.management.remoteNotificationListener 的使用
 

参数类型为 NotificationListenerjavax.management.remote 中的方法
 void JMXConnector.addConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
          添加一个接收连接状态改变的侦听器。
 void JMXConnector.removeConnectionNotificationListener(NotificationListener listener)
          将一个用于接收状态更改通知的侦听器从列表中移除。
 void JMXConnector.removeConnectionNotificationListener(NotificationListener l, NotificationFilter f, Object handback)
          将一个用于接收状态更改通知的侦听器从列表中移除。
 

javax.management.remote.rmiNotificationListener 的使用
 

参数类型为 NotificationListenerjavax.management.remote.rmi 中的方法
 void RMIConnector.addConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void RMIConnector.removeConnectionNotificationListener(NotificationListener listener)
           
 void RMIConnector.removeConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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