Package com.iizix.comm.session
Class SessionID
java.lang.Object
com.iizix.comm.session.SessionID
- All Implemented Interfaces:
- ISessionStatistics
The session ID is used to identify a transaction session that can be used to pick up communication again after a broken link, and also to store additional information about a user and other settings to easy re-establishing a session. This could be e.g. User ID and Passwords entered by the User in various points throughout the UI. This can safely be stored in this instance as it is a volatile instance that do not persist.
- Author:
- Christopher Mindus
- Field SummaryFields
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescriptionGets the string representation of this SessionID for logging when a complete "dump" is needed for diagnostics, critical errors, etc.Gets the string representation of this SessionID for logging.- static SessionID[]Gets all the Session ID's open.- static intGets the count of open sessions.Gets the session identifier.Gets the session info.Gets the statistics instance of the session.Gets the Session Transaction Manager.- toString()The string representation.- Methods inherited from class java.lang.Object- clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait- Methods inherited from interface com.iizix.comm.session.ISessionStatistics- getLastConnectionTime, getProperties, getProperty, setProperty
- Field Details- EMPTYEmpty array.
- PROP_REMOTE_ADDRSession ID properties defined.- See Also:
 
- PROP_COMM_ERROR- See Also:
 
 
- Constructor Details- SessionIDConstructs the instance.- Parameters:
- manager- The session transaction manager.
- Throws:
- NullPointerException- If- manageris- null.
 
 
- Method Details- getOpenSessionsCountpublic static int getOpenSessionsCount()Gets the count of open sessions.
- getOpenSessionsGets all the Session ID's open.
- getTransactionManagerGets the Session Transaction Manager.- Returns:
- The instance, never null.
 
- getSessionStatisticsGets the statistics instance of the session.- Specified by:
- getSessionStatisticsin interface- ISessionStatistics
- Returns:
- The SessionStatistics instance.
 
- getSessionInfoGets the session info.
- getSessionIDGets the session identifier.- Returns:
- The session identifier, or null if disposed of.
 
- getLogStringGets the string representation of this SessionID for logging.
- getFullLogInfoGets the string representation of this SessionID for logging when a complete "dump" is needed for diagnostics, critical errors, etc.
- toStringThe string representation.