Class GetPayloadInstanceInfo
java.lang.Object
org.metricshub.ipmi.core.coding.PayloadCoder
org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder<GetPayloadInstanceInfoResponseData>
org.metricshub.ipmi.core.coding.commands.payload.GetPayloadInstanceInfo
Wrapper for the Get Payload Instance Info command (IPMI 2.0 section 24.5): the session where an instance of a
payload is active.
-
Constructor Summary
ConstructorsConstructorDescriptionGetPayloadInstanceInfo(PayloadType payloadType, int payloadInstance) Creates the command. -
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) Decodes the response: the session ID (LS-byte first), then 8 bytes of payload-specific information (table 24-7).Methods 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
-
GetPayloadInstanceInfo
Creates the command.- Parameters:
payloadType- the payload type, notPayloadType.IpmipayloadInstance- the instance of the payload, from 1
-
-
Method Details
-
getCommandCode
public byte getCommandCode()Description copied from class:IpmiCommandCoderRetrieves command code specific for command represented by this class- Specified by:
getCommandCodein classIpmiCommandCoder<GetPayloadInstanceInfoResponseData>- Returns:
- command code
-
getNetworkFunction
Description copied from class:IpmiCommandCoderRetrieves network function specific for command represented by this class.- Specified by:
getNetworkFunctionin classIpmiCommandCoder<GetPayloadInstanceInfoResponseData>- Returns:
- network function, or null for a command of a network function
NetworkFunctiondoes not list, which overridesIpmiCommandCoder.getNetworkFunctionCode()instead - See Also:
-
getResponseData
Decodes the response: the session ID (LS-byte first), then 8 bytes of payload-specific information (table 24-7).- Specified by:
getResponseDatain classIpmiCommandCoder<GetPayloadInstanceInfoResponseData>- Parameters:
message- - IPMI message- Returns:
- response data
- Throws:
IPMIException- when response completion code isn't OK.
-