All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface sdsu.rmi.registry.RemoteRegistrar

public interface RemoteRegistrar
extends Remote
Interface implemented by UniVMRegistry and used by Registrar to add objects to the UniVMRegistry in the UniVMRegistry's VM. There should be no reason to use this interface directly. Use Registrar to add objects to the UniVMRegistry.

Version:
0.9.1 2 Feb. 1998
Author:
Roger Whitney (whitney@cs.sdsu.edu)
See Also:
Registrar

Method Index

 o bind(String, Remote)
Binds the name to the specified remote object.
 o bind(String, String)
Binds a Remote object created from the class className in the rmiregistry.
 o list()
Returns an array of the names in the registry.
 o rebind(String, Remote)
Binds a Remote object created from the class className in the rmiregistry.
 o rebind(String, String)
Binds a Remote object created from the class className in the rmiregistry.

Methods

 o bind
 public abstract void bind(String name,
                           Remote object) throws RemoteException, AlreadyBoundException
Binds the name to the specified remote object.

Throws: RemoteException
If remote operation failed.
Throws: AlreadyBoundException
If name is already bound.
 o bind
 public abstract void bind(String label,
                           String className) throws RemoteException, AlreadyBoundException
Binds a Remote object created from the class className in the rmiregistry. The registry's classpath must include the className. The registry's classpath must access the class given by the className.

Parameters:
className - Full class name, used to create remote object. Class must implement java.rmi.Remote.
name - Name to which object is bound
Returns:
s Name to which object is bound to.
Throws: RemoteException
thrown if there is any problem binding object.
Throws: AlreadyBoundException
If name is already bound.
 o rebind
 public abstract void rebind(String label,
                             String className) throws RemoteException
Binds a Remote object created from the class className in the rmiregistry. Replaces and object currently bound at same name. The registry's classpath must include the className. The registry's classpath must access the class given by the className.

Parameters:
className - Full class name, used to create remote object. Class must implement java.rmi.Remote.
name - Name to which object is bound
Returns:
s Name to which object is bound to.
Throws: RemoteException
thrown if there is any problem binding object.
 o rebind
 public abstract void rebind(String name,
                             Remote object) throws RemoteException
Binds a Remote object created from the class className in the rmiregistry. Replaces and object currently bound at same name. The registry's classpath must access the class given by the className.

Parameters:
object - Remote object which is bound.
name - Name to which object is bound.
Returns:
s Name to which object is bound to.
Throws: RemoteException
thrown if there is any problem binding object.
 o list
 public abstract String[] list() throws 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