vishnu.transport.remoting
Class DatabaseRemotingImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by vishnu.transport.remoting.DatabaseRemotingImpl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, DatabaseRemoting

public class DatabaseRemotingImpl
extends java.rmi.server.UnicastRemoteObject
implements DatabaseRemoting

Implementa el mecanismo de resolucion de peticiones por RMI. Se encarga de disparar los pedidos al ciclo de vida que tenga configurado.

Author:
Hernan Rancati
See Also:
Serialized Form
 

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
DatabaseRemotingImpl(TransportServiceContext c)
           
 
Method Summary
 Session login(java.lang.String databaseName, java.lang.String username, java.lang.String password)
          Logea un usuario, la base de datos a la se quiere logear tiene que ser previamente abierta.
 void logout(Session s)
           
 RemoteFuture<Response> perform(Command c)
          ejecuta la instruccion sqlStatement
 
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

DatabaseRemotingImpl

public DatabaseRemotingImpl(TransportServiceContext c)
                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

perform

public RemoteFuture<Response> perform(Command c)
                               throws java.rmi.RemoteException
Description copied from interface: DatabaseRemoting
ejecuta la instruccion sqlStatement

Specified by:
perform in interface DatabaseRemoting
Throws:
java.rmi.RemoteException

login

public Session login(java.lang.String databaseName,
                     java.lang.String username,
                     java.lang.String password)
              throws java.rmi.RemoteException
Description copied from interface: DatabaseRemoting
Logea un usuario, la base de datos a la se quiere logear tiene que ser previamente abierta.

Specified by:
login in interface DatabaseRemoting
Throws:
java.rmi.RemoteException
Parameters:
databaseName - - el onmbre de la base de datos de referencia.
username - - nombre del usuario a logear
password - - password del usuario a logear
Returns:
la sesion si el nombre de usuario y la contraseņa son correctos, null si no.

logout

public void logout(Session s)
            throws java.rmi.RemoteException
Specified by:
logout in interface DatabaseRemoting
Throws:
java.rmi.RemoteException