public class BackendSession extends AbstractBackendSession
CURRENT, EMPTY_ARRAY| Constructor and Description |
|---|
BackendSession(BackendProtocolServer _backend,
Anmeldung _anmeldung,
java.lang.String _claddr,
java.lang.String _clport,
TransportI _transport) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelRequest(int pid,
int slot) |
void |
decCommandHandler(int pid,
boolean sessionBroken)
Decrements the number of command handlers by unsubscribing the specified pid.
|
long |
getAlteredBOCount() |
long |
getBackEndTime() |
long |
getClientKey()
Retrieves the client key ID associated with this session, or returns 0 if
no key is set for this session yet.
|
long |
getCommandCount() |
BackendCommandHandlerI |
getCommandHandler(int pid) |
int |
getConnections() |
long |
getCreatedBOCount() |
java.lang.String |
getGateway() |
java.lang.Long |
getId()
Retrieves the ID associated with this session, or returns null if none is
set for this session yet.
|
long |
getKernelTime() |
java.lang.String |
getLastActivity() |
java.lang.String |
getLastActivity(java.lang.String format) |
java.util.Locale |
getLocale() |
java.lang.String |
getLoggedInSince() |
java.lang.String |
getLoggedInSince(java.lang.String format) |
long |
getObjectCount() |
java.lang.String |
getParms() |
long |
getProcsCount() |
java.lang.String |
getProtocolParameters() |
java.lang.String |
getProtocolVersion() |
long |
getRoundtripCount() |
java.lang.String |
getServerEndPoint() |
long |
getTotalTime() |
long |
getTransactionCount() |
long |
getTransportTime() |
java.lang.String |
getUser() |
java.lang.String |
getWorkstation()
Returns the IP-address and port of the workstation associated with this BackendSessionI.
|
java.lang.String |
getWorkstationAddress()
Returns the IP-address of the workstation associated with this BackendSessionI.
|
boolean |
hasBackStreamToClient()
Returns
true if there is a backend command handler in this session, acting as back stream to the client, false otherwise. |
int |
incCommandHandler(java.lang.Object commandHandler) |
void |
incCommands() |
void |
incObjects() |
void |
incRoundtrips() |
void |
incSaveBO(int procCnt,
int newBOCnt,
int includedBOCnt) |
boolean |
isLocalConnection()
Returns true if the server endpoint and the workstation are on the same interface
|
java.lang.Long |
nextTempId()
Returns the next temporary Id to be used by the calling Transaction and updates the internal counter.
|
void |
setId(java.lang.Long id)
Sets the ID associated with this session.
|
void |
setLocale(java.util.Locale $14) |
void |
setParms(java.lang.String $13) |
java.lang.String |
toString() |
void |
touch() |
void |
touch(PerformanceMeter pm) |
void |
waitUntilEventSendingFinished()
Used by DBMan.ShutdownThread to ensure that the JVM is not halted until all
shutdown notifications have been sent to clients.
|
getAnmeldung, getCountsAgainstLimit, getCurrentUserName, getCurrentUserRemark, getUtx, isAdministratorUserSession, setAnmeldung, setUtxequals, getClass, hashCode, notify, notifyAll, wait, wait, waitisConnectedpublic BackendSession(BackendProtocolServer _backend, Anmeldung _anmeldung, java.lang.String _claddr, java.lang.String _clport, TransportI _transport)
public java.lang.Long nextTempId()
TemporaryIdSupplierIpublic java.lang.String toString()
toString in interface BackendSessionItoString in class AbstractBackendSessionpublic java.lang.Long getId()
public void setId(java.lang.Long id)
id - The Long object representing the new ID to be associated with
this session.java.lang.IllegalStateException - If an ID conflict is detected.public long getClientKey()
getClientKey in interface BackendSessionIgetClientKey in class AbstractBackendSessionpublic java.lang.String getUser()
public int incCommandHandler(java.lang.Object commandHandler)
public void decCommandHandler(int pid,
boolean sessionBroken)
BackendSessionIpid - The pid to unsubscribe from command handling.sessionBroken - A boolean flag indicating whether to force a user logout due to broken session (true) or not (false).public BackendCommandHandlerI getCommandHandler(int pid)
public boolean hasBackStreamToClient()
BackendSessionItrue if there is a backend command handler in this session, acting as back stream to the client, false otherwise.public boolean cancelRequest(int pid,
int slot)
public java.lang.String getProtocolVersion()
getProtocolVersion in interface BackendSessionIgetProtocolVersion in class AbstractBackendSessionpublic java.lang.String getProtocolParameters()
getProtocolParameters in interface BackendSessionIgetProtocolParameters in class AbstractBackendSessionpublic java.lang.String getServerEndPoint()
getServerEndPoint in interface BackendSessionIgetServerEndPoint in class AbstractBackendSessionpublic java.lang.String getWorkstationAddress()
BackendSessionIgetWorkstationAddress in interface BackendSessionIgetWorkstationAddress in class AbstractBackendSessionpublic java.lang.String getWorkstation()
BackendSessionIgetWorkstation in interface BackendSessionIgetWorkstation in class AbstractBackendSessionpublic boolean isLocalConnection()
BackendSessionIisLocalConnection in interface BackendSessionIisLocalConnection in class AbstractBackendSessionpublic java.lang.String getGateway()
getGateway in interface BackendSessionIgetGateway in class AbstractBackendSessionpublic java.lang.String getLoggedInSince()
getLoggedInSince in interface BackendSessionIgetLoggedInSince in class AbstractBackendSessionpublic java.lang.String getLoggedInSince(java.lang.String format)
getLoggedInSince in interface BackendSessionIgetLoggedInSince in class AbstractBackendSessionpublic int getConnections()
getConnections in interface BackendSessionIgetConnections in class AbstractBackendSessionpublic java.lang.String getLastActivity()
getLastActivity in interface BackendSessionIgetLastActivity in class AbstractBackendSessionpublic java.lang.String getLastActivity(java.lang.String format)
getLastActivity in interface BackendSessionIgetLastActivity in class AbstractBackendSessionpublic long getCommandCount()
getCommandCount in interface BackendSessionIgetCommandCount in class AbstractBackendSessionpublic long getRoundtripCount()
getRoundtripCount in interface BackendSessionIgetRoundtripCount in class AbstractBackendSessionpublic long getObjectCount()
getObjectCount in interface BackendSessionIgetObjectCount in class AbstractBackendSessionpublic long getTransactionCount()
getTransactionCount in interface BackendSessionIgetTransactionCount in class AbstractBackendSessionpublic long getProcsCount()
getProcsCount in interface BackendSessionIgetProcsCount in class AbstractBackendSessionpublic long getAlteredBOCount()
getAlteredBOCount in interface BackendSessionIgetAlteredBOCount in class AbstractBackendSessionpublic long getCreatedBOCount()
getCreatedBOCount in interface BackendSessionIgetCreatedBOCount in class AbstractBackendSessionpublic long getKernelTime()
getKernelTime in interface BackendSessionIgetKernelTime in class AbstractBackendSessionpublic long getBackEndTime()
getBackEndTime in interface BackendSessionIgetBackEndTime in class AbstractBackendSessionpublic long getTransportTime()
getTransportTime in interface BackendSessionIgetTransportTime in class AbstractBackendSessionpublic long getTotalTime()
getTotalTime in interface BackendSessionIgetTotalTime in class AbstractBackendSessionpublic void touch()
public void touch(PerformanceMeter pm)
public void incRoundtrips()
public void incCommands()
public void incObjects()
public void incSaveBO(int procCnt,
int newBOCnt,
int includedBOCnt)
public void waitUntilEventSendingFinished()
public java.lang.String getParms()
public void setParms(java.lang.String $13)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale $14)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.