Class IpmiCommandCoder
java.lang.Object
org.metricshub.ipmi.core.coding.PayloadCoder
org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder
- Direct Known Subclasses:
ActivatePayload,ChassisControl,CloseSession,DeactivatePayload,GetChannelAuthenticationCapabilities,GetChannelCipherSuites,GetChannelPayloadSupport,GetChassisStatus,GetFruInventoryAreaInfo,GetPayloadActivationStatus,GetSdr,GetSdrRepositoryInfo,GetSelEntry,GetSelInfo,GetSensorReading,OpenSession,Rakp1,Rakp3,ReadFruData,ReserveSdrRepository,ReserveSel,SetSessionPrivilegeLevel
A wrapper for IPMI command.
Parameterless constructors in classes derived from IpmiCommandCoder are meant
to be used for decoding. To avoid omitting setting an important parameter
when encoding message use parametered constructors rather than the
parameterless ones.
-
Constructor Summary
ConstructorsConstructorDescriptionIpmiCommandCoder(IpmiVersion version, CipherSuite cipherSuite, AuthenticationType authenticationType) -
Method Summary
Modifier and TypeMethodDescriptionabstract byteRetrieves command code specific for command represented by this classabstract NetworkFunctionRetrieves network function specific for command represented by this class.booleanisCommandResponse(IpmiMessage message) Checks if given message contains response command specific for this class.Methods inherited from class org.metricshub.ipmi.core.coding.PayloadCoder
encodePayload, getAuthenticationType, getCipherSuite, getIpmiVersion, getResponseData, setAuthenticationType, setCipherSuite, setIpmiVersion, setSessionParameters
-
Constructor Details
-
IpmiCommandCoder
public IpmiCommandCoder() -
IpmiCommandCoder
public IpmiCommandCoder(IpmiVersion version, CipherSuite cipherSuite, AuthenticationType authenticationType)
-
-
Method Details
-
getSupportedPayloadType
- Specified by:
getSupportedPayloadTypein classPayloadCoder
-
isCommandResponse
Checks if given message contains response command specific for this class.- Parameters:
message-IpmiMessagewrapping the IPMI message- Returns:
- True if message contains response command specific for this class, false otherwise.
-
getCommandCode
public abstract byte getCommandCode()Retrieves command code specific for command represented by this class- Returns:
- command code
-
getNetworkFunction
Retrieves network function specific for command represented by this class.- Returns:
- network function
- See Also:
-