net.sf.jso.remote
Class ControllerHome
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
net.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
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
|
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 |
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.
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.