Class GetDeviceSdr
java.lang.Object
org.metricshub.ipmi.core.coding.PayloadCoder
org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder<GetSdrResponseData>
org.metricshub.ipmi.core.coding.commands.sdr.GetSdr
org.metricshub.ipmi.core.coding.commands.sdr.GetDeviceSdr
Get Device SDR (IPMI 2.0 section 35.3): reads a record of the SDRs a Sensor Device holds itself, for a controller
without an SDR Repository. The request and the response are those of
GetSdr.-
Constructor Summary
ConstructorsConstructorDescriptionGetDeviceSdr(int reservationId, int recordId) Creates the command that reads a whole record.GetDeviceSdr(int reservationId, int recordId, int offset, int bytesToRead) Creates the command that reads part of a record. -
Method Summary
Modifier and TypeMethodDescriptionbyteRetrieves command code specific for command represented by this classRetrieves network function specific for command represented by this class.Methods inherited from class org.metricshub.ipmi.core.coding.commands.sdr.GetSdr
getResponseDataMethods inherited from class org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder
answers, getNetworkFunctionCode, getSupportedPayloadType, isCommandResponseMethods inherited from class org.metricshub.ipmi.core.coding.PayloadCoder
encodePayload, getAuthenticationType, getCipherSuite, getIpmiVersion, setAuthenticationType, setCipherSuite, setIpmiVersion, setSessionParameters
-
Constructor Details
-
GetDeviceSdr
public GetDeviceSdr(int reservationId, int recordId) Creates the command that reads a whole record.- Parameters:
reservationId- the reservation ID fromReserveDeviceSdrRepository, only needed for a partial readrecordId- the ID of the record, 0 for the first one
-
GetDeviceSdr
public GetDeviceSdr(int reservationId, int recordId, int offset, int bytesToRead) Creates the command that reads part of a record.- Parameters:
reservationId- the reservation ID fromReserveDeviceSdrRepositoryrecordId- the ID of the record, 0 for the first oneoffset- the offset of the first byte to read in the recordbytesToRead- the number of bytes to read, FFh for the whole record
-
-
Method Details
-
getCommandCode
public byte getCommandCode()Description copied from class:IpmiCommandCoderRetrieves command code specific for command represented by this class- Overrides:
getCommandCodein classGetSdr- Returns:
- command code
-
getNetworkFunction
Description copied from class:IpmiCommandCoderRetrieves network function specific for command represented by this class.- Overrides:
getNetworkFunctionin classGetSdr- Returns:
- network function, or null for a command of a network function
NetworkFunctiondoes not list, which overridesIpmiCommandCoder.getNetworkFunctionCode()instead - See Also:
-