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 bytestatic final bytestatic final int -
Method Summary
Modifier and TypeMethodDescriptionbytebytebyte[]getData()byte[]Returns IPMI command encapsulated in IPMI Payload.byte[]Returns unencrypted payload encoded in byte array (owner is responsible for encryption).intReturns encoded but UNENCRYPTED payload length.bytebooleanChecks if givenSolMessageis an ACK/NACK for some other message.booleanChecks 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:IpmiPayloadReturns unencrypted payload encoded in byte array (owner is responsible for encryption).- Specified by:
getPayloadDatain classIpmiPayload- Returns:
- payload
-
getPayloadLength
public int getPayloadLength()Description copied from class:IpmiPayloadReturns encoded but UNENCRYPTED payload length.- Specified by:
getPayloadLengthin classIpmiPayload
-
getIpmiCommandData
public byte[] getIpmiCommandData()Description copied from class:IpmiPayloadReturns IPMI command encapsulated in IPMI Payload.- Specified by:
getIpmiCommandDatain classIpmiPayload
-
getData
public byte[] getData()- Overrides:
getDatain 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 givenSolMessageis an ACK/NACK for some other message.
-