net.sf.jso.remote
Class ControllerHome

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bynet.sf.jso.remote.ControllerHome
All Implemented Interfaces:
java.rmi.Remote, java.io.Serializable, StorageControllerHome

public class ControllerHome
extends java.rmi.server.UnicastRemoteObject
implements StorageControllerHome

Home for a remote storage controller. An object of this class is typically bound to an object registry.

See Also:
StorageControllerHome, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface net.sf.jso.remote.StorageControllerHome
REGISTRY_NAME_PREFIX
 
Constructor Summary
ControllerHome(java.lang.String anUser, java.lang.String aPassword, RemoteStorageController aController)
          Constructs controller home.
 
Method Summary
 RemoteStorageController getController(java.lang.String anUser, java.lang.String aPassword)
          Returns remote reference to storage controller if authentication is succesfull.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControllerHome

public ControllerHome(java.lang.String anUser,
                      java.lang.String aPassword,
                      RemoteStorageController aController)
               throws java.rmi.RemoteException,
                      StorageException
Constructs controller home.

Parameters:
anUser - User name for authentication.
aPassword - User's password.
aController - Home's remote controller.
Method Detail

getController

public RemoteStorageController getController(java.lang.String anUser,
                                             java.lang.String aPassword)
                                      throws StorageException
Returns remote reference to storage controller if authentication is succesfull.

Specified by:
getController in interface StorageControllerHome
Parameters:
anUser - User name for authentication.
aPassword - User's password.
Returns:
Remote reference to storage controller
Throws:
StorageException - If authentication fails.