Class IpmiLanResponse
java.lang.Object
org.metricshub.ipmi.core.coding.payload.IpmiPayload
org.metricshub.ipmi.core.coding.payload.lan.IpmiLanMessage
org.metricshub.ipmi.core.coding.payload.lan.IpmiLanResponse
A wrapper class for IPMB response message.
-
Field Summary
Fields inherited from class org.metricshub.ipmi.core.coding.payload.lan.IpmiLanMessage
MAX_SEQUENCE_NUMBER, MIN_SEQUENCE_NUMBER -
Constructor Summary
ConstructorsConstructorDescriptionIpmiLanResponse(byte[] rawData) Builds IPMI LAN response message from byte array. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Deprecated.LAN response does not hve payload dataintGets expected size of LAN message in bytes.intvoidsetCompletionCode(byte completionCode) Decodes the completion code.Methods inherited from class org.metricshub.ipmi.core.coding.payload.lan.IpmiLanMessage
getCommand, getIpmiCommandData, getNetworkFunction, getNetworkFunctionCode, getRequesterAddress, getRequesterLogicalUnitNumber, getResponderAddress, getResponderLogicalUnitNumber, getSequenceNumber, setCommand, setNetworkFunction, setRequesterAddress, setRequesterLogicalUnitNumber, setResponderAddress, setResponderLogicalUnitNumber, setSequenceNumberMethods inherited from class org.metricshub.ipmi.core.coding.payload.IpmiPayload
encryptPayload, getData, getEncryptedPayload, setData
-
Constructor Details
-
IpmiLanResponse
public IpmiLanResponse(byte[] rawData) Builds IPMI LAN response message from byte array.- Parameters:
rawData-- Throws:
IllegalArgumentException- when the message is too short or a checksum is corrupted
-
-
Method Details
-
setCompletionCode
public void setCompletionCode(byte completionCode) Decodes the completion code. Only 00h and the generic codes (C0h-FFh, IPMI 2.0 Table 5-2) have a meaning common to every command; an OEM (01h-7Eh) or command-specific (80h-BEh) code isCompletionCode.Unknownhere, and the command coder may give it its own meaning.- Parameters:
completionCode- the completion code byte of the response
-
getCompletionCode
-
getRawCompletionCode
public int getRawCompletionCode()- Returns:
- the completion code byte as the BMC sent it
-
getPayloadLength
public int getPayloadLength()Description copied from class:IpmiLanMessageGets expected size of LAN message in bytes.- Specified by:
getPayloadLengthin classIpmiLanMessage
-
getPayloadData
Deprecated.LAN response does not hve payload dataDescription copied from class:IpmiLanMessageConverts IpmiLanMessage to byte array.- Specified by:
getPayloadDatain classIpmiLanMessage- Returns:
- payload
-