站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 management API Documentation 英文版文档

ListenerRegistration (JBoss/Management API) - JBoss 4.0.1 sp1 management API Documentation 英文版文档


org.jboss.management.mejb
Class ListenerRegistration

java.lang.Object
  extended byorg.jboss.management.mejb.ListenerRegistration
All Implemented Interfaces:
javax.management.j2ee.ListenerRegistration, Serializable

public class ListenerRegistration
extends Object
implements javax.management.j2ee.ListenerRegistration

Root class of the JBoss JSR-77 implementation of ListenerRegistration.

Version:
$Revision: 1.7 $
Author:
Andreas Schaefer.
See Also:
Serialized Form

Field Summary
static int NOTIFICATION_TYPE_JMS
           
static int NOTIFICATION_TYPE_POLLING
           
static int NOTIFICATION_TYPE_RMI
           
 
Constructor Summary
ListenerRegistration(javax.management.j2ee.ManagementHome pHome, String[] pOptions)
           
 
Method Summary
 void addNotificationListener(javax.management.ObjectName pName, javax.management.NotificationListener pListener, javax.management.NotificationFilter pFilter, Object pHandback)
          Add a listener to a registered managed object.
 void removeNotificationListener(javax.management.ObjectName pName, javax.management.NotificationListener pListener)
          Remove a listener from a registered managed object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTIFICATION_TYPE_RMI

public static final int NOTIFICATION_TYPE_RMI
See Also:
Constant Field Values

NOTIFICATION_TYPE_JMS

public static final int NOTIFICATION_TYPE_JMS
See Also:
Constant Field Values

NOTIFICATION_TYPE_POLLING

public static final int NOTIFICATION_TYPE_POLLING
See Also:
Constant Field Values
Constructor Detail

ListenerRegistration

public ListenerRegistration(javax.management.j2ee.ManagementHome pHome,
                            String[] pOptions)
Method Detail

addNotificationListener

public void addNotificationListener(javax.management.ObjectName pName,
                                    javax.management.NotificationListener pListener,
                                    javax.management.NotificationFilter pFilter,
                                    Object pHandback)
                             throws javax.management.InstanceNotFoundException,
                                    RemoteException
Description copied from interface: javax.management.j2ee.ListenerRegistration
Add a listener to a registered managed object.

Specified by:
addNotificationListener in interface javax.management.j2ee.ListenerRegistration
Parameters:
pName - The name of the managed object on which the listener should be added.
pListener - The listener object which will handle the notifications emitted by the registered managed object.
pFilter - The filter object. If filter is null, no filtering will be performed before handling notifications.
pHandback - The context to be sent to the listener when a notification is emitted.
Throws:
javax.management.InstanceNotFoundException - The managed object name provided does not match any of the registered managed objects.
RemoteException - A communication exception occurred during the execution of a remote method call

removeNotificationListener

public void removeNotificationListener(javax.management.ObjectName pName,
                                       javax.management.NotificationListener pListener)
                                throws javax.management.InstanceNotFoundException,
                                       javax.management.ListenerNotFoundException,
                                       RemoteException
Description copied from interface: javax.management.j2ee.ListenerRegistration
Remove a listener from a registered managed object.

Specified by:
removeNotificationListener in interface javax.management.j2ee.ListenerRegistration
Parameters:
pName - The name of the managed object on which the listener should be removed.
pListener - The listener object which will handle the notifications emitted by the registered managed object. This method will remove all the information related to this listener.
Throws:
javax.management.InstanceNotFoundException - The managed object name provided does not match any of the registered managed objects.
RemoteException - A communication exception occurred during the execution of a remote method call
javax.management.ListenerNotFoundException - The listener is not registered in the managed object.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.