sdsu.rmi.registry
Interface RemoteRegistrar

All Known Implementing Classes:
UniVMRegistry

public abstract interface RemoteRegistrar
extends java.rmi.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 Summary
 void bind(java.lang.String name, java.rmi.Remote object)
          Binds the name to the specified remote object.
 void bind(java.lang.String label, java.lang.String className)
          Binds a Remote object created from the class className in the rmiregistry.
 java.lang.String[] list()
          Returns an array of the names in the registry.
 void rebind(java.lang.String name, java.rmi.Remote object)
          Binds a Remote object created from the class className in the rmiregistry.
 void rebind(java.lang.String label, java.lang.String className)
          Binds a Remote object created from the class className in the rmiregistry.
 

Method Detail

bind

public void bind(java.lang.String name,
                 java.rmi.Remote object)
          throws java.rmi.RemoteException,
                 java.rmi.AlreadyBoundException
Binds the name to the specified remote object.
Throws:
java.rmi.RemoteException - If remote operation failed.
java.rmi.AlreadyBoundException - If name is already bound.

bind

public void bind(java.lang.String label,
                 java.lang.String className)
          throws java.rmi.RemoteException,
                 java.rmi.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
Throws:
java.rmi.RemoteException - thrown if there is any problem binding object.
java.rmi.AlreadyBoundException - If name is already bound.

rebind

public void rebind(java.lang.String label,
                   java.lang.String className)
            throws java.rmi.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
Throws:
java.rmi.RemoteException - thrown if there is any problem binding object.

rebind

public void rebind(java.lang.String name,
                   java.rmi.Remote object)
            throws java.rmi.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.
Throws:
java.rmi.RemoteException - thrown if there is any problem binding object.

list

public java.lang.String[] list()
                        throws java.rmi.RemoteException,
                               java.rmi.AccessException
Returns an array of the names in the registry.
Throws:
java.rmi.RemoteException - If remote operation failed.
java.rmi.AccessException - If this operation is not permitted.