ermi.registry
Interface ERegistry

All Superinterfaces:
ERemote

public interface ERegistry
extends ERemote

For obtaining references to remote objects, ERMI provides a simple remote object registry interface, implemented by ERMI's rmiregistry, that provides methods for storing and retrieving remote object references. The ermi.Naming class provides methods to access a remote object registry.


Method Summary
 void bind(java.lang.String name, java.util.Properties ref)
          Binds the specified name to a remote object.
 java.util.Vector list()
          Returns a Vector of the names bound in the registry.
 java.util.Properties lookup(java.lang.String name)
          Returns a reference, a stub, for the remote object associated with the specified name.
 void rebind(java.lang.String name, java.util.Properties ref)
          Rebinds the specified name in the registry.
 void unbind(java.lang.String name)
          Unbinds the specified name from the registry.
 
Methods inherited from interface ermi.ERemote
close, copy, getERef, init
 

Method Detail

lookup

public java.util.Properties lookup(java.lang.String name)
                            throws RemoteException
Returns a reference, a stub, for the remote object associated with the specified name.

Returns:
ermi.Eremote Reference to the remote object
Throws:
RemoteException - - if the connection with the event service fails.
NotBoundException - - if the Registry does not contains this Id.

bind

public void bind(java.lang.String name,
                 java.util.Properties ref)
          throws RemoteException
Binds the specified name to a remote object.

Parameters:
name - Id of the remote object
ref - remote object reference to bind
Throws:
RemoteException - - if the connection with the event service fails.

unbind

public void unbind(java.lang.String name)
            throws RemoteException
Unbinds the specified name from the registry.

Parameters:
name - Id of the remote object
Throws:
NotBoundException - - if the Registry does not contains this Id.
RemoteException - - if the connection with the event service fails.

rebind

public void rebind(java.lang.String name,
                   java.util.Properties ref)
            throws RemoteException
Rebinds the specified name in the registry.

Parameters:
name - Id of the remote object
ref - remote object reference to bind
Throws:
RemoteException - - if the connection with the event service fails.

list

public java.util.Vector list()
                      throws RemoteException
Returns a Vector of the names bound in the registry. The Vector contains a snapshot of the names present in the registry at the time of the call.

Returns:
java.util.Vector A list of Ids from remote objects.
Throws:
RemoteException - - if the connection with the event service fails.