Class Session

java.lang.Object
org.metricshub.ipmi.core.connection.Session

public class Session extends Object
Single opened IPMI session handle. It contains all information necessary to distinguish session among others.
  • Constructor Details

    • Session

      public Session(int sessionId, ConnectionHandle connectionHandle)
    • Session

      public Session(int sessionId, int managedSystemSessionId, ConnectionHandle connectionHandle)
      Parameters:
      sessionId - the remote console session ID
      managedSystemSessionId - the managed system session ID, which the BMC generated
      connectionHandle - the connection of the session
  • Method Details

    • getSessionId

      public int getSessionId()
    • getManagedSystemSessionId

      public int getManagedSystemSessionId()
      Returns:
      the managed system session ID, which the BMC generated and reports in its commands (Get Payload Instance Info), or 0 when unknown
    • getConnectionHandle

      public ConnectionHandle getConnectionHandle()