org.glassfish.admin.mejb
Class EventListenerProxy

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.glassfish.admin.mejb.EventListenerProxy
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, RemoteEventListener

public class EventListenerProxy
extends java.rmi.server.UnicastRemoteObject
implements RemoteEventListener

The EventListenerProxy recieves notifications from RemoteListenerConnectors registered on the server managed objects and forwards them to the corresponding local listeners

Author:
Hans Hrasna
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
EventListenerProxy()
           
 
Method Summary
 void addListener(java.lang.String id, javax.management.NotificationListener l, java.lang.Object handback)
           
static EventListenerProxy getEventListenerProxy()
           
 java.lang.String getProxyAddress()
           
 void handleNotification(javax.management.Notification n, java.lang.Object h)
           
 void removeListener(java.lang.String id)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventListenerProxy

public EventListenerProxy()
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

getEventListenerProxy

public static EventListenerProxy getEventListenerProxy()

handleNotification

public void handleNotification(javax.management.Notification n,
                               java.lang.Object h)
                        throws java.rmi.RemoteException
Specified by:
handleNotification in interface RemoteEventListener
Throws:
java.rmi.RemoteException

getProxyAddress

public java.lang.String getProxyAddress()

addListener

public void addListener(java.lang.String id,
                        javax.management.NotificationListener l,
                        java.lang.Object handback)

removeListener

public void removeListener(java.lang.String id)
                    throws javax.management.ListenerNotFoundException
Throws:
javax.management.ListenerNotFoundException


Copyright © 2012 GlassFish Community. All Rights Reserved.