public interface RemoteDbSession extends Remote
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes a session.
|
SessionInfo |
getClientSessionInfo()
Gets the client user info.
|
org.tentackle.persist.rmi.DbRemoteDelegate |
getDbRemoteDelegate()
Gets the delegate for the remote db-connection.
|
<T extends org.tentackle.persist.rmi.RemoteDelegate> |
getRemoteDelegate(String classname)
Gets the delegate for a given classname.
Per class the rmi-clients request a remote access there must be a RemoteDelegate. |
String |
getServerName()
Gets the application name of the server.
|
void |
log(Logger.Level level,
String message)
Sends text based logging infos to the RMI-Server.
|
void |
logStatistics(Logger.Level level,
boolean clear)
Logs the statistics.
|
SessionInfo getClientSessionInfo() throws RemoteException
The server may set certain values in the session info that may be of interest by the client application, for example the userId.
RemoteExceptionString getServerName() throws RemoteException
RemoteExceptionvoid close()
throws RemoteException
RemoteExceptionvoid log(Logger.Level level, String message) throws RemoteException
level - the logging levelmessage - the messageRemoteExceptionvoid logStatistics(Logger.Level level, boolean clear) throws RemoteException
level - the logging levelclear - true if clear statistics after dumpRemoteException - if logging failedRemoteDelegateInvocationHandler.collectStatisticsorg.tentackle.persist.rmi.DbRemoteDelegate getDbRemoteDelegate()
throws RemoteException
RemoteException<T extends org.tentackle.persist.rmi.RemoteDelegate> T getRemoteDelegate(String classname) throws RemoteException
classname - is the name of classRemoteExceptionCopyright © 2016 Krake Softwaretechnik. All rights reserved.