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

ListenerRegistration (JBoss/Management API) - JBoss 3.2.7 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.4.2.1 $
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)
          Adds a new local (client-side) listener to the Management EJB (server-side) to listen for Notifications.
 void removeNotificationListener(javax.management.ObjectName pName, javax.management.NotificationListener pListener)
          Removes the notification listener from the Management EJB (server-side) based on the given local (client-side) listener.
 
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
Adds a new local (client-side) listener to the Management EJB (server-side) to listen for Notifications. If the call is local (in the same JVM) then it can optimize the call to local.

Specified by:
addNotificationListener in interface javax.management.j2ee.ListenerRegistration
Parameters:
pName - Object Name of the Managed Object we want to listen for notifications
pListener - Local (client-side) Notification Listener to finally receive the notifications
pFilter - Notification Filter to reduce the notifications to what the client expects
pHandback - Handback object sent back to the client on every Notifications delivered based on this registration
Throws:
javax.management.InstanceNotFoundException
RemoteException

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
Removes the notification listener from the Management EJB (server-side) based on the given local (client-side) listener.

Specified by:
removeNotificationListener in interface javax.management.j2ee.ListenerRegistration
Parameters:
pName - Object Name of the Managed Object the Listener was added to listen for
pListener - Local (client-side) Notification Listener used to add the notification listener
Throws:
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
RemoteException


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