All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.rmi.registry.Registry

public interface Registry
extends Remote
A "registry" exists on every node that allows RMI connections to servers on that node. The registry on a particular node contains a transient database that maps names to remote objects. When the node boots, the registry database is empty. The names stored in the registry are pure and are not parsed. A service storing itself in the registry may want to prefix its name of the service by a package name (although not required), to reduce name collisions in the registry. The LocateRegistry class is used to obtain the registry for different hosts.

See Also:
LocateRegistry

Variable Index

 o REGISTRY_PORT
Well known port for registry

Method Index

 o bind(String, Remote)
Binds the name to the specified remote object.
 o list()
Returns an array of the names in the registry.
 o lookup(String)
Returns the remote object associated with the specified name in the registry.
 o rebind(String, Remote)
Rebind the name to a new object, replacing any existing binding.
 o unbind(String)
Unbind the name.

Variables

 o REGISTRY_PORT
Properties Public Constant 
   REGISTRY_PORT=int 
Well known port for registry

Methods

 o lookup
    method lookup(name=String) returns Remote public abstract    Signals RemoteException, NotBoundException, AccessException
Returns the remote object associated with the specified name in the registry.

Throws: RemoteException
If remote operation failed.
Throws: NotBoundException
if there is no object with this name in the registry.
Throws: AccessException
If this operation is not permitted.
 o bind
    method bind(name=String, -
                obj=Remote)  public abstract    Signals RemoteException, AlreadyBoundException, AccessException
Binds the name to the specified remote object.

Throws: RemoteException
If remote operation failed.
Throws: AlreadyBoundException
If name is already bound.
Throws: AccessException
If this operation is not permitted.
 o unbind
    method unbind(name=String)  public abstract    Signals RemoteException, NotBoundException, AccessException
Unbind the name.

Throws: RemoteException
If remote operation failed.
Throws: NotBoundException
if there is no object with this name in the registry.
Throws: AccessException
If this operation is not permitted.
 o rebind
    method rebind(name=String, -
                  obj=Remote)  public abstract    Signals RemoteException, AccessException
Rebind the name to a new object, replacing any existing binding.

Throws: RemoteException
If remote operation failed.
Throws: AccessException
If this operation is not permitted.
 o list
    method list() returns String[] public abstract    Signals RemoteException, AccessException
Returns an array of the names in the registry.

Throws: RemoteException
If remote operation failed.
Throws: AccessException
If this operation is not permitted.

All Packages  Class Hierarchy  This Package  Previous  Next  Index