Class GetDeviceSdrInfo
java.lang.Object
org.metricshub.ipmi.core.coding.PayloadCoder
org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder<GetDeviceSdrInfoResponseData>
org.metricshub.ipmi.core.coding.commands.sdr.GetDeviceSdrInfo
Get Device SDR Info (IPMI 2.0 section 35.2): how many SDRs a Sensor Device holds itself, or how many sensors it
implements at the LUN the request is addressed to.
-
Constructor Summary
ConstructorsConstructorDescriptionGetDeviceSdrInfo(boolean sdrCount) Creates the command, addressed to LUN 0.GetDeviceSdrInfo(boolean sdrCount, int lun) Creates the command, addressed to a LUN of the device: the sensor count is the one of that LUN. -
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
answers, getNetworkFunctionCode, getSupportedPayloadType, isCommandResponseMethods inherited from class org.metricshub.ipmi.core.coding.PayloadCoder
encodePayload, getAuthenticationType, getCipherSuite, getIpmiVersion, setAuthenticationType, setCipherSuite, setIpmiVersion, setSessionParameters
-
Constructor Details
-
GetDeviceSdrInfo
public GetDeviceSdrInfo(boolean sdrCount) Creates the command, addressed to LUN 0.- Parameters:
sdrCount- true for the number of SDRs of the device, false for the number of sensors at LUN 0
-
GetDeviceSdrInfo
public GetDeviceSdrInfo(boolean sdrCount, int lun) Creates the command, addressed to a LUN of the device: the sensor count is the one of that LUN.- Parameters:
sdrCount- true for the number of SDRs of the device, false for the number of sensors at the LUNlun- the LUN, 0 to 3 (the response flags list the LUNs that have sensors)- Throws:
IllegalArgumentException- when the LUN is not 0 to 3
-
-
Method Details
-
getCommandCode
public byte getCommandCode()Description copied from class:IpmiCommandCoderRetrieves command code specific for command represented by this class- Specified by:
getCommandCodein classIpmiCommandCoder<GetDeviceSdrInfoResponseData>- Returns:
- command code
-
getNetworkFunction
Description copied from class:IpmiCommandCoderRetrieves network function specific for command represented by this class.- Specified by:
getNetworkFunctionin classIpmiCommandCoder<GetDeviceSdrInfoResponseData>- Returns:
- network function, or null for a command of a network function
NetworkFunctiondoes not list, which overridesIpmiCommandCoder.getNetworkFunctionCode()instead - See Also:
-
getResponseData
public GetDeviceSdrInfoResponseData getResponseData(IpmiMessage message) throws IPMIException, NoSuchAlgorithmException, InvalidKeyException Description copied from class:PayloadCoderRetrieves payload-specific response data from IPMI message- Specified by:
getResponseDatain classIpmiCommandCoder<GetDeviceSdrInfoResponseData>- 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
-