java.rmi.registry
Interface Registry
- All Superinterfaces:
- Remote
public interface Registry
- extends Remote
REGISTRY_PORT
static final int REGISTRY_PORT
- See Also:
- Constant Field Values
lookup
Remote lookup(String name)
throws RemoteException,
NotBoundException,
AccessException
- Find and return the reference to the object that was previously bound
to the registry by this name. For remote objects, this method returns
the stub instances, containing the code for remote invocations.
Since jdk 1.5 this method does not longer require the stub class
(nameImpl_Stub) to be present. If such class is not found, the stub is
replaced by the dynamically constructed proxy class. No attempt to find
and load the stubs is made if the system property
java.rmi.server.ignoreStubClasses is set to true (set to reduce the
starting time if the stubs are surely not present and exclusively 1.2
RMI is used).
- Parameters:
name
- the name of the object
- Returns:
- the reference to that object on that it is possible to invoke
the (usually remote) object methods.
- Throws:
RemoteException
NotBoundException
AccessException
bind
void bind(String name,
Remote obj)
throws RemoteException,
AlreadyBoundException,
AccessException
- Throws:
RemoteException
AlreadyBoundException
AccessException
unbind
void unbind(String name)
throws RemoteException,
NotBoundException,
AccessException
- Throws:
RemoteException
NotBoundException
AccessException
rebind
void rebind(String name,
Remote obj)
throws RemoteException,
AccessException
- Throws:
RemoteException
AccessException
list
String[] list()
throws RemoteException,
AccessException
- Throws:
RemoteException
AccessException