public class AgentXResponsePDU 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 |
|---|
AgentXResponsePDU(AgentXMessageHeader header) |
AgentXResponsePDU(int sysUpTime,
short errorStatus,
short errorIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.snmp4j.smi.VariableBinding vb) |
protected void |
beforeEncode()
Initialize flags and other things before a PDU is encoded.
|
void |
clear() |
void |
decodePayload(ByteBuffer buf,
int length) |
protected void |
encodePayload(ByteBuffer buf) |
short |
getErrorIndex() |
short |
getErrorStatus() |
int |
getPayloadLength() |
int |
getSysUpTime() |
org.snmp4j.smi.VariableBinding[] |
getVariableBindings() |
void |
setErrorIndex(int errorIndex) |
void |
setErrorIndex(short errorIndex) |
void |
setErrorStatus(int errorStatus) |
void |
setErrorStatus(short errorStatus) |
void |
setSysUpTime(int sysUpTime) |
void |
setVariableBindings(org.snmp4j.smi.VariableBinding[] variableBindings) |
int |
size() |
protected String |
toStringExtMembers() |
addFlag, decode, encode, getByteOrder, getFlags, getPacketID, getSessionID, getTransactionID, getType, getVersion, isConfirmedPDU, isFlagSet, main, setByteOrder, setFlags, setPacketID, setSessionAttributes, setSessionID, setTransactionID, setType, setVersion, toStringpublic AgentXResponsePDU(int sysUpTime,
short errorStatus,
short errorIndex)
public AgentXResponsePDU(AgentXMessageHeader header)
public void decodePayload(ByteBuffer buf, int length) throws IOException
decodePayload in class AgentXPDUIOExceptionprotected void encodePayload(ByteBuffer buf)
encodePayload in class AgentXPDUpublic int getPayloadLength()
getPayloadLength in class AgentXPDUpublic int getSysUpTime()
public org.snmp4j.smi.VariableBinding[] getVariableBindings()
public int size()
public short getErrorIndex()
public short getErrorStatus()
public void setVariableBindings(org.snmp4j.smi.VariableBinding[] variableBindings)
public void setSysUpTime(int sysUpTime)
public void setErrorStatus(short errorStatus)
public void setErrorIndex(short errorIndex)
public void setErrorStatus(int errorStatus)
public void setErrorIndex(int errorIndex)
public void add(org.snmp4j.smi.VariableBinding vb)
public void clear()
protected void beforeEncode()
AgentXPDUbeforeEncode in class AgentXPDUprotected String toStringExtMembers()
toStringExtMembers in class AgentXPDUCopyright © 2020 SNMP4J.org. All rights reserved.