Class SolMessage
java.lang.Object
org.metricshub.ipmi.core.coding.payload.IpmiPayload
org.metricshub.ipmi.core.coding.payload.sol.SolMessage
- Direct Known Subclasses:
SolInboundMessage
,SolOutboundMessage
Implementation of
IpmiPayload
for SOL (Serial over LAN) messages.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
static final int
-
Method Summary
Modifier and TypeMethodDescriptionbyte
byte
byte[]
getData()
byte[]
Returns IPMI command encapsulated in IPMI Payload.byte[]
Returns unencrypted payload encoded in byte array (owner is responsible for encryption).int
Returns encoded but UNENCRYPTED payload length.byte
boolean
Checks if givenSolMessage
is an ACK/NACK for some other message.boolean
Checks if given message carries some data (or operation/status).Methods inherited from class org.metricshub.ipmi.core.coding.payload.IpmiPayload
encryptPayload, getEncryptedPayload, setData
-
Field Details
-
MIN_SEQUENCE_NUMBER
public static final byte MIN_SEQUENCE_NUMBER- See Also:
-
MAX_SEQUENCE_NUMBER
public static final byte MAX_SEQUENCE_NUMBER- See Also:
-
PAYLOAD_HEADER_LENGTH
public static final int PAYLOAD_HEADER_LENGTH- See Also:
-
-
Method Details
-
getPayloadData
public byte[] getPayloadData()Description copied from class:IpmiPayload
Returns unencrypted payload encoded in byte array (owner is responsible for encryption).- Specified by:
getPayloadData
in classIpmiPayload
- Returns:
- payload
-
getPayloadLength
public int getPayloadLength()Description copied from class:IpmiPayload
Returns encoded but UNENCRYPTED payload length.- Specified by:
getPayloadLength
in classIpmiPayload
-
getIpmiCommandData
public byte[] getIpmiCommandData()Description copied from class:IpmiPayload
Returns IPMI command encapsulated in IPMI Payload.- Specified by:
getIpmiCommandData
in classIpmiPayload
-
getData
public byte[] getData()- Overrides:
getData
in classIpmiPayload
-
getSequenceNumber
public byte getSequenceNumber() -
getAckNackSequenceNumber
public byte getAckNackSequenceNumber() -
getAcceptedCharacterCount
public byte getAcceptedCharacterCount() -
isDataCarrier
public boolean isDataCarrier()Checks if given message carries some data (or operation/status). -
isAcknowledgeMessage
public boolean isAcknowledgeMessage()Checks if givenSolMessage
is an ACK/NACK for some other message.
-