Package org.snmp4j.agent.agentx
Class AgentXUndoSetPDU
java.lang.Object
org.snmp4j.agent.agentx.AgentXPDU
org.snmp4j.agent.agentx.AgentXUndoSetPDU
- All Implemented Interfaces:
Serializable
The
AgentXUndoSetPDU represents the agentx-UndoSet-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
ConstructorsConstructorDescriptionCreates a newAgentXUndoSetPDU.AgentXUndoSetPDU(AgentXMessageHeader header) Creates aAgentXUndoSetPDUfrom aAgentXMessageHeader. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInitialize flags and other things before a PDU is encoded.voiddecodePayload(ByteBuffer buf, int length) Decode this PDU's payload.protected voidencodePayload(ByteBuffer buf) Encode the payload to the given byte buffer.intGets 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
-
AgentXUndoSetPDU
public AgentXUndoSetPDU()Creates a newAgentXUndoSetPDU. -
AgentXUndoSetPDU
Creates aAgentXUndoSetPDUfrom aAgentXMessageHeader.- Parameters:
header- the message header.
-
-
Method Details
-
encodePayload
Description copied from class:AgentXPDUEncode the payload to the given byte buffer.- Specified by:
encodePayloadin classAgentXPDU- Parameters:
buf- the buffer.
-
getPayloadLength
public int getPayloadLength()Description copied from class:AgentXPDUGets the payload length.- Specified by:
getPayloadLengthin classAgentXPDU- Returns:
- the payload length.
-
decodePayload
Description copied from class:AgentXPDUDecode this PDU's payload.- Specified by:
decodePayloadin 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:AgentXPDUInitialize flags and other things before a PDU is encoded.- Specified by:
beforeEncodein classAgentXPDU
-