|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Registry
is a remote interface to a remote-object registry.
It provides methods for binding and looking-up remote object references
bound to names.
Field Summary | |
static int |
REGISTRY_PORT
Well known port for RMI registry. |
Method Summary | |
void |
bind(java.lang.String name,
Remote obj)
Binds the specified remote reference to the specified name. |
java.lang.String[] |
list()
Returns an array of names bound in this registry. |
Remote |
lookup(java.lang.String name)
Returns the remote reference bound to the specified name. |
void |
rebind(java.lang.String name,
Remote obj)
Rebinds the specified remote reference to the specified name. |
void |
unbind(java.lang.String name)
Removes the binding for the specified name. |
Field Detail |
public static final int REGISTRY_PORT
Method Detail |
public Remote lookup(java.lang.String name) throws RemoteException, NotBoundException
name
- the name to look up
NotBoundException
- if the name is not bound
RemoteException
- if communication with the registry failed.public void bind(java.lang.String name, Remote obj) throws RemoteException, AlreadyBoundException
name
- the name to bind the reference toobj
- the remote reference
AlreadyBoundException
- is the name is already bound
RemoteException
- if communication with the registry failed.public void unbind(java.lang.String name) throws RemoteException, NotBoundException
name
- the name to unbind
NotBoundException
- if the name is not bound
RemoteException
- if communication with the registry failed.public void rebind(java.lang.String name, Remote obj) throws RemoteException
name
- the name to bind the reference toobj
- the remote reference
RemoteException
- if communication with the registry failed.public java.lang.String[] list() throws RemoteException
RemoteException
- if communication with the registry failed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |