Class IpmiLanResponse


public class IpmiLanResponse extends IpmiLanMessage
A wrapper class for IPMB response message.
  • 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 is CompletionCode.Unknown here, and the command coder may give it its own meaning.
      Parameters:
      completionCode - the completion code byte of the response
    • getCompletionCode

      public CompletionCode getCompletionCode()
    • getRawCompletionCode

      public int getRawCompletionCode()
      Returns:
      the completion code byte as the BMC sent it
    • getPayloadLength

      public int getPayloadLength()
      Description copied from class: IpmiLanMessage
      Gets expected size of LAN message in bytes.
      Specified by:
      getPayloadLength in class IpmiLanMessage
    • getPayloadData

      @Deprecated public byte[] getPayloadData()
      Deprecated.
      LAN response does not hve payload data
      Description copied from class: IpmiLanMessage
      Converts IpmiLanMessage to byte array.
      Specified by:
      getPayloadData in class IpmiLanMessage
      Returns:
      payload