Class ActivatePayload<R extends ActivatePayloadResponseData>
java.lang.Object
org.metricshub.ipmi.core.coding.PayloadCoder
org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder<R>
org.metricshub.ipmi.core.coding.commands.payload.ActivatePayload<R>
- Direct Known Subclasses:
ActivateSolPayload
public abstract class ActivatePayload<R extends ActivatePayloadResponseData>
extends IpmiCommandCoder<R>
An abstract wrapper class for Activate Payload Command. Every
PayloadType should have it's own concrete
implementation.-
Method Summary
Modifier and TypeMethodDescriptionbooleanbyteRetrieves command code specific for command represented by this classRetrieves network function specific for command represented by this class.abstract PayloadTypegetResponseData(IpmiMessage message) Retrieves payload-specific response data from IPMI messageinthashCode()Methods 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
-
Method Details
-
getPayloadType
- Returns:
- type of the payload activated by this command.
-
getCommandCode
public byte getCommandCode()Description copied from class:IpmiCommandCoderRetrieves command code specific for command represented by this class- Specified by:
getCommandCodein classIpmiCommandCoder<R extends ActivatePayloadResponseData>- Returns:
- command code
-
getNetworkFunction
Description copied from class:IpmiCommandCoderRetrieves network function specific for command represented by this class.- Specified by:
getNetworkFunctionin classIpmiCommandCoder<R extends ActivatePayloadResponseData>- Returns:
- network function, or null for a command of a network function
NetworkFunctiondoes not list, which overridesIpmiCommandCoder.getNetworkFunctionCode()instead - See Also:
-
getResponseData
public R getResponseData(IpmiMessage message) throws IPMIException, NoSuchAlgorithmException, InvalidKeyException Description copied from class:PayloadCoderRetrieves payload-specific response data from IPMI message- Specified by:
getResponseDatain classIpmiCommandCoder<R extends ActivatePayloadResponseData>- 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
-
equals
-
hashCode
public int hashCode()
-