|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject sqlg2.db.DBInterface
public class DBInterface
RMI wrapper for IDBInterface
.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
DBInterface(sqlg2.db.LocalDBInterface lw)
|
Method Summary | |
---|---|
void |
close()
Closes DB connection. |
SessionInfo[] |
getActiveSessions()
Returns active sessions descriptors. |
SessionInfo |
getCurrentSession()
Returns calling session descriptor |
ISimpleTransaction |
getSimpleTransaction()
Creates "simple" transaction. |
ITransaction |
getTransaction()
Creates transaction. |
java.lang.String |
getUserHost()
User host name. |
java.lang.String |
getUserLogin()
Returns user login (which was passed to IConnectionFactory.openConnection(java.lang.String, java.lang.String) ). |
java.lang.Object |
getUserObject()
Returns user identifier object which was returned from AuthenticationHelper.authenticate(java.sql.Connection,String,String)
(null in case of direct authentication). |
void |
killSession(long sessionId)
|
IDBInterface |
migrateTo(IConnectionFactory conf)
Opens new DB connection to another application with same login and password. |
void |
ping()
Checks server for availability and signal that client is alive. |
void |
runProcess(ProcessFactory factory)
Creates background process on the server. |
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 |
---|
public DBInterface(sqlg2.db.LocalDBInterface lw) throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public ISimpleTransaction getSimpleTransaction() throws java.rmi.RemoteException
IDBInterface
getSimpleTransaction
in interface IDBInterface
java.rmi.RemoteException
ISimpleTransaction
public ITransaction getTransaction() throws java.rmi.RemoteException
IDBInterface
getTransaction
in interface IDBInterface
java.rmi.RemoteException
ITransaction
public void ping() throws java.rmi.RemoteException
IDBInterface
ping
in interface IDBInterface
java.rmi.RemoteException
public void close() throws java.rmi.RemoteException
IDBInterface
close
in interface IDBInterface
java.rmi.RemoteException
public java.lang.String getUserLogin() throws java.rmi.RemoteException
IDBInterface
IConnectionFactory.openConnection(java.lang.String, java.lang.String)
).
getUserLogin
in interface IDBInterface
java.rmi.RemoteException
public java.lang.String getUserHost() throws java.rmi.RemoteException
IDBInterface
getUserHost
in interface IDBInterface
java.rmi.RemoteException
public java.lang.Object getUserObject() throws java.rmi.RemoteException
IDBInterface
AuthenticationHelper.authenticate(java.sql.Connection,String,String)
(null in case of direct authentication).
getUserObject
in interface IDBInterface
java.rmi.RemoteException
public SessionInfo[] getActiveSessions() throws java.rmi.RemoteException
IDBInterface
getActiveSessions
in interface IDBInterface
java.rmi.RemoteException
public void killSession(long sessionId) throws java.rmi.RemoteException
killSession
in interface IDBInterface
java.rmi.RemoteException
public SessionInfo getCurrentSession() throws java.rmi.RemoteException
IDBInterface
getCurrentSession
in interface IDBInterface
java.rmi.RemoteException
public IDBInterface migrateTo(IConnectionFactory conf) throws java.rmi.RemoteException, java.sql.SQLException
IDBInterface
migrateTo
in interface IDBInterface
conf
- root object of application
java.rmi.RemoteException
java.sql.SQLException
public void runProcess(ProcessFactory factory) throws java.rmi.RemoteException, java.sql.SQLException
IDBInterface
runProcess
in interface IDBInterface
factory
- process factory
java.rmi.RemoteException
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |