ermi.registry
Class ERegistryStub

java.lang.Object
  |
  +--EventServer
        |
        +--ermi.registry.ERegistryStub
All Implemented Interfaces:
ERegistry, ERemote

public class ERegistryStub
extends EventServer
implements ERegistry

See Also:
Serialized Form

Constructor Summary
ERegistryStub(java.util.Properties env)
           
ERegistryStub(java.util.Properties env, java.lang.String stub)
           
 
Method Summary
 java.lang.String addFilter(java.lang.String p0)
           
 void bind(java.lang.String p0, java.util.Properties p1)
           
 void close()
          Removes all subscriptions for this object and releases event service connection.
 ermi.ERemote copy()
          Returns a reference to a new stub instance of this remote object.
 boolean equals(java.lang.Object obj)
           
 void eventArrived(java.util.Hashtable evt)
           
 void init()
          Connects to the event service and creates all subscriptions for this object.
 java.util.Vector list()
           
 java.util.Properties lookup(java.lang.String p0)
           
 void rebind(java.lang.String p0, java.util.Properties p1)
           
 void removeFilter()
           
 void removeFilter(java.lang.String p0)
           
 void unbind(java.lang.String p0)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ermi.ERemote
getERef
 

Constructor Detail

ERegistryStub

public ERegistryStub(java.util.Properties env)
              throws RemoteException

ERegistryStub

public ERegistryStub(java.util.Properties env,
                     java.lang.String stub)
              throws RemoteException
Method Detail

eventArrived

public void eventArrived(java.util.Hashtable evt)

list

public java.util.Vector list()
                      throws RemoteException
Specified by:
list in interface ERegistry
RemoteException

lookup

public java.util.Properties lookup(java.lang.String p0)
                            throws RemoteException
Specified by:
lookup in interface ERegistry
RemoteException

bind

public void bind(java.lang.String p0,
                 java.util.Properties p1)
          throws RemoteException
Specified by:
bind in interface ERegistry
RemoteException

unbind

public void unbind(java.lang.String p0)
            throws RemoteException
Specified by:
unbind in interface ERegistry
RemoteException

rebind

public void rebind(java.lang.String p0,
                   java.util.Properties p1)
            throws RemoteException
Specified by:
rebind in interface ERegistry
RemoteException

addFilter

public java.lang.String addFilter(java.lang.String p0)
                           throws RemoteException
RemoteException

removeFilter

public void removeFilter(java.lang.String p0)
                  throws RemoteException
RemoteException

removeFilter

public void removeFilter()
                  throws RemoteException
RemoteException

close

public void close()
           throws RemoteException
Description copied from interface: ERemote
Removes all subscriptions for this object and releases event service connection.
It is highly recommended to call this method on object references that will no longer be used.

Specified by:
close in interface ERemote
Throws:
RemoteException - - if the connection with the event service fails.

init

public void init()
          throws RemoteException
Description copied from interface: ERemote
Connects to the event service and creates all subscriptions for this object.

Specified by:
init in interface ERemote
Throws:
RemoteException - - if the connection with the event service fails.

equals

public boolean equals(java.lang.Object obj)

copy

public ermi.ERemote copy()
                  throws RemoteException
Description copied from interface: ERemote
Returns a reference to a new stub instance of this remote object. This is mainly used in the pass by reference calls to remote objects. This stub is later initialized (init) when is deserialized in the demanding endpoint.

It is mandatory to call this method when a remote server returns an object by reference. See the ERMI documentation for more information about this.

Specified by:
copy in interface ERemote
Throws:
RemoteException - - if the stub cannot be instantiated for any reason (explained in the RemoteException message).