Class GetSessionInfo
java.lang.Object
org.metricshub.ipmi.core.coding.PayloadCoder
org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder<GetSessionInfoResponseData>
org.metricshub.ipmi.core.coding.commands.session.GetSessionInfo
Get Session Info (IPMI 2.0 section 22.20), looking a session up by its session ID: what the BMC knows of it. The
reply names the session when the BMC has it (
GetSessionInfoResponseData.isSessionFound()), and only the
session counts when it has not.-
Constructor Summary
ConstructorsConstructorDescriptionGetSessionInfo(int sessionId) Creates a Get Session Info request for the session with the given session ID. -
Method Summary
Modifier and TypeMethodDescriptionbyteRetrieves command code specific for command represented by this classRetrieves network function specific for command represented by this class.getResponseData(IpmiMessage message) Retrieves payload-specific response data from IPMI messageMethods inherited from class org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder
answers, getNetworkFunctionCode, getSupportedPayloadType, isCommandResponseMethods inherited from class org.metricshub.ipmi.core.coding.PayloadCoder
encodePayload, getAuthenticationType, getCipherSuite, getIpmiVersion, setAuthenticationType, setCipherSuite, setIpmiVersion, setSessionParameters
-
Constructor Details
-
GetSessionInfo
public GetSessionInfo(int sessionId) Creates a Get Session Info request for the session with the given session ID.- Parameters:
sessionId- the managed system session ID of the session to look up
-
-
Method Details
-
getCommandCode
public byte getCommandCode()Description copied from class:IpmiCommandCoderRetrieves command code specific for command represented by this class- Specified by:
getCommandCodein classIpmiCommandCoder<GetSessionInfoResponseData>- Returns:
- command code
-
getNetworkFunction
Description copied from class:IpmiCommandCoderRetrieves network function specific for command represented by this class.- Specified by:
getNetworkFunctionin classIpmiCommandCoder<GetSessionInfoResponseData>- Returns:
- network function, or null for a command of a network function
NetworkFunctiondoes not list, which overridesIpmiCommandCoder.getNetworkFunctionCode()instead - See Also:
-
getResponseData
Description copied from class:PayloadCoderRetrieves payload-specific response data from IPMI message- Specified by:
getResponseDatain classIpmiCommandCoder<GetSessionInfoResponseData>- Parameters:
message- - IPMI message- Returns:
- response data
- Throws:
IPMIException- when response completion code isn't OK.
-