java.rmi.registry

Interface Registry

public interface Registry extends Remote

Field Summary
intREGISTRY_PORT
Method Summary
voidbind(String name, Remote obj)
String[]list()
Remotelookup(String name)
Find and return the reference to the object that was previously bound to the registry by this name.
voidrebind(String name, Remote obj)
voidunbind(String name)

Field Detail

REGISTRY_PORT

public int REGISTRY_PORT

Method Detail

bind

public void bind(String name, Remote obj)

list

public String[] list()

lookup

public Remote lookup(String name)
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

rebind

public void rebind(String name, Remote obj)

unbind

public void unbind(String name)