Package org.snmp4j.agent.agentx
Class AgentXCommitSetPDU
java.lang.Object
org.snmp4j.agent.agentx.AgentXPDU
org.snmp4j.agent.agentx.AgentXCommitSetPDU
- All Implemented Interfaces:
Serializable
The
AgentXCommitSetPDU
represents the agentx-CleanupSet-PDU defined by RFC 2741.- See Also:
-
Field Summary
Fields inherited from class org.snmp4j.agent.agentx.AgentXPDU
AGENTX_ADDAGENTCAPS_PDU, AGENTX_CLEANUPSET_PDU, AGENTX_CLOSE_PDU, AGENTX_COMMITSET_PDU, AGENTX_GET_PDU, AGENTX_GETBULK_PDU, AGENTX_GETNEXT_PDU, AGENTX_INDEXALLOCATE_PDU, AGENTX_INDEXDEALLOCATE_PDU, AGENTX_NOTIFY_PDU, AGENTX_OPEN_PDU, AGENTX_PING_PDU, AGENTX_REGISTER_PDU, AGENTX_REMOVEAGENTCAPS_PDU, AGENTX_RESPONSE_PDU, AGENTX_TESTSET_PDU, AGENTX_UNDOSET_PDU, AGENTX_UNREGISTER_PDU, byteOrder, flags, packetID, RESERVED, sessionID, transactionID, type, version
-
Constructor Summary
ConstructorDescriptionCreates aAgentXCommitSetPDU
.Creates aAgentXCommitSetPDU
from aAgentXMessageHeader
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Initialize flags and other things before a PDU is encoded.void
decodePayload
(ByteBuffer buf, int length) Decode this PDU's payload.protected void
encodePayload
(ByteBuffer buf) Encode the payload to the given byte buffer.int
Gets the payload length.Methods inherited from class org.snmp4j.agent.agentx.AgentXPDU
addFlag, decode, encode, getByteOrder, getFlags, getPacketID, getSessionID, getTransactionID, getType, getVersion, isConfirmedPDU, isFlagSet, setByteOrder, setFlags, setPacketID, setSessionAttributes, setSessionID, setTransactionID, setType, setVersion, toString, toStringExtMembers
-
Constructor Details
-
AgentXCommitSetPDU
public AgentXCommitSetPDU()Creates aAgentXCommitSetPDU
. -
AgentXCommitSetPDU
Creates aAgentXCommitSetPDU
from aAgentXMessageHeader
.- Parameters:
header
- the message header.
-
-
Method Details
-
encodePayload
Description copied from class:AgentXPDU
Encode the payload to the given byte buffer.- Specified by:
encodePayload
in classAgentXPDU
- Parameters:
buf
- the buffer.
-
getPayloadLength
public int getPayloadLength()Description copied from class:AgentXPDU
Gets the payload length.- Specified by:
getPayloadLength
in classAgentXPDU
- Returns:
- the payload length.
-
decodePayload
Description copied from class:AgentXPDU
Decode this PDU's payload.- Specified by:
decodePayload
in classAgentXPDU
- Parameters:
buf
- the buffer positioned at the end of the encoded context.length
- the length of the PDU to be decoded.- Throws:
IOException
- if the buffer contains less data than expected.
-
beforeEncode
protected void beforeEncode()Description copied from class:AgentXPDU
Initialize flags and other things before a PDU is encoded.- Specified by:
beforeEncode
in classAgentXPDU
-