|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.tentackle.db.rmi.RemoteDbConnectionImpl
public class RemoteDbConnectionImpl
Server side RMI-connection implementation.
Overview of what happens in a Tentackle RMI application server:
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
RemoteDbConnectionImpl(DbServer server,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Creates a connection. |
|
| Method Summary | |
|---|---|
protected void |
finalize()
Overridden to detect unwanted garbage collection as this should never happen. |
RMIClientSocketFactory |
getClientSocketFactory()
Gets the client socket factory. |
int |
getPort()
Gets the tcp port for this connection. |
DbServer |
getServer()
Gets the DbServer. |
RMIServerSocketFactory |
getServerSocketFactory()
Gets the server socket factory. |
protected UserInfo |
getServerUserInfo(UserInfo clientInfo)
Gets the server UserInfo. If it is not provided for this connection, it will be cloned from the given clientInfo. |
RemoteDbSession |
login(UserInfo clientInfo)
Login to remote RMI-server. |
void |
logout(RemoteDbSession session)
Logout from remote RMI-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 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteDbConnectionImpl(DbServer server,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
throws RemoteException
server - the DbServerport - the tcp-port, 0 = system defaultcsf - the client socket factory, null = system defaultssf - the server socket factory, null = system default
RemoteExceptionDbServer| Method Detail |
|---|
public DbServer getServer()
public int getPort()
public RMIClientSocketFactory getClientSocketFactory()
public RMIServerSocketFactory getServerSocketFactory()
protected UserInfo getServerUserInfo(UserInfo clientInfo)
throws RemoteException
clientInfo - the default user info if no server info
RemoteException
protected void finalize()
throws Throwable
finalize in class ObjectThrowable - the Exception raised by this method
public RemoteDbSession login(UserInfo clientInfo)
throws RemoteException
RemoteDbConnection
login in interface RemoteDbConnectionclientInfo - the user information
RemoteException - if some error, for example wrong passord
public void logout(RemoteDbSession session)
throws RemoteException
RemoteDbConnection
logout in interface RemoteDbConnectionsession - to be closed
RemoteException - if some error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||