|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ermi.Naming
The Naming class provides methods for storing and obtaining references to remote objects
in the remote object registry.
The ermi.Naming API (unlike java.RMI) does not use URLs, but Properties Object or files
containing connection parameters. It is then mandatory to call loadRegistry before using
the functionality of the Registry..
Constructor Summary | |
Naming()
|
Method Summary | |
static void |
bind(java.lang.String name,
ermi.ERemote ref)
Binds the specified name to a remote object. |
static java.util.Vector |
list()
Returns a Vector of the names bound in the registry. |
static void |
loadRegistry(java.lang.String ref)
It connects to the Registry using the information contained in the properties file ref). |
static ermi.ERemote |
lookup(java.lang.String name)
Returns a reference, a stub, for the remote object associated with the specified name. |
static void |
rebind(java.lang.String name,
ermi.ERemote ref)
Rebinds the specified name in the registry. |
static void |
unbind(java.lang.String name)
Unbinds the specified name from the registry. |
static void |
unloadRegistry()
Disconnects from to the Registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Naming()
Method Detail |
public static void loadRegistry(java.lang.String ref) throws RemoteException
ref
- Name of properties file containing connection parameters.
RemoteException
- - if the connection with the event service fails.public static void unloadRegistry() throws RemoteException
RemoteException
- - if the connection with the event service fails.public static ermi.ERemote lookup(java.lang.String name) throws RemoteException
RemoteException
- - if the connection with the event service fails.
NotBoundException
- - if the Registry does not contains this Id.public static void bind(java.lang.String name, ermi.ERemote ref) throws RemoteException
name
- Id of the remote objectref
- remote object reference to bind
RemoteException
- - if the connection with the event service fails.public static void unbind(java.lang.String name) throws RemoteException
name
- Id of the remote object
NotBoundException
- - if the Registry does not contains this Id.
RemoteException
- - if the connection with the event service fails.public static void rebind(java.lang.String name, ermi.ERemote ref) throws RemoteException
name
- Id of the remote objectref
- remote object reference to bind
RemoteException
- - if the connection with the event service fails.public static java.util.Vector list() throws RemoteException
RemoteException
- - if the connection with the event service fails.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |