|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Registry
The Registry
provides a simple interface for binding and
retrieving remote object references by name.
Method Summary | |
---|---|
void |
bind(java.lang.String name,
Proxy proxy)
Binds the specified name to a remote object. |
Proxy |
lookup(java.lang.String name)
Returns a proxy for the remote object associated with the specified name |
void |
unbind(java.lang.String name)
Removes the binding for the specified name |
Method Detail |
---|
Proxy lookup(java.lang.String name) throws java.rmi.NotBoundException, java.rmi.RemoteException
name
- the name the proxy is bound under
name
java.rmi.NotBoundException
- if name is not bound
java.rmi.RemoteException
- if the registry could not be contacted
void bind(java.lang.String name, Proxy proxy) throws java.rmi.AccessException, java.rmi.AlreadyBoundException, java.rmi.RemoteException
name
- the name of the bindingproxy
- the proxy for the remote object
java.rmi.AccessException
- if the caller doesn't have permission to
bind the object
java.rmi.AlreadyBoundException
- if name
is already bound
java.rmi.RemoteException
- if the registry could not be contactedvoid unbind(java.lang.String name) throws java.rmi.AccessException, java.rmi.NotBoundException, java.rmi.RemoteException
name
- the name of the binding
java.rmi.AccessException
- if the caller doesn't have permission to unbind
the object
java.rmi.NotBoundException
- if name is not bound
java.rmi.RemoteException
- if the registry could not be contacted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |