Class SessionID

java.lang.Object
com.iizix.comm.session.SessionID
All Implemented Interfaces:
ISessionStatistics

public final class SessionID extends Object implements 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 Details Link icon

  • Constructor Details Link icon

    • SessionID Link icon

      public SessionID(ISessionTransMgr manager)
      Constructs the instance.
      Parameters:
      manager - The session transaction manager.
      Throws:
      NullPointerException - If manager is null.
  • Method Details Link icon

    • getOpenSessionsCount Link icon

      public static int getOpenSessionsCount()
      Gets the count of open sessions.
    • getOpenSessions Link icon

      public static SessionID[] getOpenSessions()
      Gets all the Session ID's open.
    • getTransactionManager Link icon

      public ISessionTransMgr getTransactionManager()
      Gets the Session Transaction Manager.
      Returns:
      The instance, never null.
    • getSessionStatistics Link icon

      public SessionStatistics getSessionStatistics()
      Gets the statistics instance of the session.
      Specified by:
      getSessionStatistics in interface ISessionStatistics
      Returns:
      The SessionStatistics instance.
    • getSessionInfo Link icon

      public SessionInfo getSessionInfo()
      Gets the session info.
    • getSessionID Link icon

      public String getSessionID()
      Gets the session identifier.
      Returns:
      The session identifier, or null if disposed of.
    • getLogString Link icon

      public String getLogString()
      Gets the string representation of this SessionID for logging.
    • getFullLogInfo Link icon

      public String getFullLogInfo()
      Gets the string representation of this SessionID for logging when a complete "dump" is needed for diagnostics, critical errors, etc.
    • toString Link icon

      public String toString()
      The string representation.
      Overrides:
      toString in class Object