Class IpmiLanRequest
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.IpmiLanRequest
A wrapper class for IPMB LAN message
-
Field Summary
Fields inherited from class org.metricshub.ipmi.core.coding.payload.lan.IpmiLanMessage
MAX_SEQUENCE_NUMBER, MIN_SEQUENCE_NUMBER
-
Constructor Summary
ConstructorsConstructorDescriptionIpmiLanRequest
(NetworkFunction networkFunction, byte commandCode, byte[] requestData, byte sequenceNumber) Builds IpmiLanRequest addressed at LUN 0.IpmiLanRequest
(NetworkFunction networkFunction, byte commandCode, byte[] requestData, byte sequenceNumber, byte lun) Builds IpmiLanRequest. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Converts IpmiLanMessage to byte array.int
Gets expected size of LAN message in bytes.Methods inherited from class org.metricshub.ipmi.core.coding.payload.lan.IpmiLanMessage
getCommand, getIpmiCommandData, getNetworkFunction, getRequesterAddress, getRequesterLogicalUnitNumber, getResponderAddress, getResponderLogicalUnitNumber, getSequenceNumber, setCommand, setNetworkFunction, setRequesterAddress, setRequesterLogicalUnitNumber, setResponderAddress, setResponderLogicalUnitNumber, setSequenceNumber
Methods inherited from class org.metricshub.ipmi.core.coding.payload.IpmiPayload
encryptPayload, getData, getEncryptedPayload, setData
-
Constructor Details
-
IpmiLanRequest
public IpmiLanRequest(NetworkFunction networkFunction, byte commandCode, byte[] requestData, byte sequenceNumber) Builds IpmiLanRequest addressed at LUN 0.- Parameters:
networkFunction
- - command specificNetworkFunction
commandCode
- - command specificCommandCodes
requestData
- - command specific payloadsequenceNumber
- - used to match request and response - must be in range [0-63]
-
IpmiLanRequest
public IpmiLanRequest(NetworkFunction networkFunction, byte commandCode, byte[] requestData, byte sequenceNumber, byte lun) Builds IpmiLanRequest.- Parameters:
networkFunction
- - command specificNetworkFunction
commandCode
- - command specificCommandCodes
requestData
- - command specific payloadsequenceNumber
- - used to match request and response - must be in range [0-63]lun
- - target Logical Unit Number. Must be in range [0-3].
-
-
Method Details
-
getPayloadLength
public int getPayloadLength()Description copied from class:IpmiLanMessage
Gets expected size of LAN message in bytes.- Specified by:
getPayloadLength
in classIpmiLanMessage
-
getPayloadData
public byte[] getPayloadData()Description copied from class:IpmiLanMessage
Converts IpmiLanMessage to byte array.- Specified by:
getPayloadData
in classIpmiLanMessage
- Returns:
- payload
-