public class AgentXClosePDU extends 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 and Description |
|---|
AgentXClosePDU(AgentXMessageHeader header) |
AgentXClosePDU(byte reason) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeEncode()
Initialize flags and other things before a PDU is encoded.
|
void |
decodePayload(ByteBuffer buf,
int length) |
void |
encodePayload(ByteBuffer buf) |
int |
getPayloadLength() |
byte |
getReason() |
void |
setReason(byte reason) |
addFlag, decode, encode, getByteOrder, getFlags, getPacketID, getSessionID, getTransactionID, getType, getVersion, isConfirmedPDU, isFlagSet, main, setByteOrder, setFlags, setPacketID, setSessionAttributes, setSessionID, setTransactionID, setType, setVersion, toString, toStringExtMemberspublic AgentXClosePDU(AgentXMessageHeader header)
public AgentXClosePDU(byte reason)
public void decodePayload(ByteBuffer buf, int length) throws IOException
decodePayload in class AgentXPDUIOExceptionpublic byte getReason()
public void setReason(byte reason)
public int getPayloadLength()
getPayloadLength in class AgentXPDUpublic void encodePayload(ByteBuffer buf)
encodePayload in class AgentXPDUprotected void beforeEncode()
AgentXPDUbeforeEncode in class AgentXPDUCopyright © 2020 SNMP4J.org. All rights reserved.