Class GetSdr
java.lang.Object
org.metricshub.ipmi.core.coding.PayloadCoder
org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder
org.metricshub.ipmi.core.coding.commands.sdr.GetSdr
Wrapper for Get SDR command.
-
Constructor Summary
ConstructorsConstructorDescriptionGetSdr(IpmiVersion version, CipherSuite cipherSuite, AuthenticationType authenticationType, int reservationId, int recordId) Initiates GetSdr for both encoding and decoding.GetSdr(IpmiVersion version, CipherSuite cipherSuite, AuthenticationType authenticationType, int reservationId, int recordId, int offset, int bytesToRead) Initiates GetSdr for both encoding and decoding. -
Method Summary
Modifier and TypeMethodDescriptionbyteRetrieves command code specific for command represented by this classRetrieves network function specific for command represented by this class.getResponseData(IpmiMessage message) Retrieves payload-specific response data from IPMI messageMethods inherited from class org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder
getSupportedPayloadType, isCommandResponseMethods inherited from class org.metricshub.ipmi.core.coding.PayloadCoder
encodePayload, getAuthenticationType, getCipherSuite, getIpmiVersion, setAuthenticationType, setCipherSuite, setIpmiVersion, setSessionParameters
-
Constructor Details
-
GetSdr
public GetSdr(IpmiVersion version, CipherSuite cipherSuite, AuthenticationType authenticationType, int reservationId, int recordId) Initiates GetSdr for both encoding and decoding. 'Offset info record' and 'bytes to read' fields are set to read whole record.- Parameters:
version- - IPMI version of the command.cipherSuite- -CipherSuitecontaining authentication, confidentiality and integrity algorithms for this session.authenticationType- - Type of authentication used. Must be RMCPPlus for IPMI v2.0.reservationId- - SDR reservation ID received viaReserveSdrRepositorycommandrecordId- - ID of the record to get
-
GetSdr
public GetSdr(IpmiVersion version, CipherSuite cipherSuite, AuthenticationType authenticationType, int reservationId, int recordId, int offset, int bytesToRead) Initiates GetSdr for both encoding and decoding.- Parameters:
version- - IPMI version of the command.cipherSuite- -CipherSuitecontaining authentication, confidentiality and integrity algorithms for this session.authenticationType- - Type of authentication used. Must be RMCPPlus for IPMI v2.0.reservationId- - SDR reservation ID received viaReserveSdrRepositorycommandrecordId- - ID of the record to getoffset- - the offset into record, at which reading should be startedbytesToRead- - number of bytes to read
-
-
Method Details
-
getCommandCode
public byte getCommandCode()Description copied from class:IpmiCommandCoderRetrieves command code specific for command represented by this class- Specified by:
getCommandCodein classIpmiCommandCoder- Returns:
- command code
-
getNetworkFunction
Description copied from class:IpmiCommandCoderRetrieves network function specific for command represented by this class.- Specified by:
getNetworkFunctionin classIpmiCommandCoder- Returns:
- network function
- See Also:
-
getResponseData
public ResponseData getResponseData(IpmiMessage message) throws IPMIException, NoSuchAlgorithmException, InvalidKeyException Description copied from class:PayloadCoderRetrieves payload-specific response data from IPMI message- Specified by:
getResponseDatain classPayloadCoder- Parameters:
message- - IPMI message- Returns:
- response data
- Throws:
IPMIException- when response completion code isn't OK.NoSuchAlgorithmException- when authentication, confidentiality or integrity algorithm fails.InvalidKeyException- when creating of the authentication algorithm key fails
-