org.snmp4j.agent.agentx
Class AgentXResponsePDU
java.lang.Object
org.snmp4j.agent.agentx.AgentXPDU
org.snmp4j.agent.agentx.AgentXResponsePDU
public class AgentXResponsePDU
- extends AgentXPDU
| 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 |
| Methods inherited from class org.snmp4j.agent.agentx.AgentXPDU |
addFlag, decode, encode, getByteOrder, getFlags, getPacketID, getSessionID, getTransactionID, getType, getVersion, isConfirmedPDU, isFlagSet, main, setByteOrder, setFlags, setPacketID, setSessionAttributes, setSessionID, setTransactionID, setType, setVersion, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AgentXResponsePDU
public AgentXResponsePDU(int sysUpTime,
short errorStatus,
short errorIndex)
AgentXResponsePDU
public AgentXResponsePDU(AgentXMessageHeader header)
decodePayload
public void decodePayload(java.nio.ByteBuffer buf,
int length)
throws java.io.IOException
- Specified by:
decodePayload in class AgentXPDU
- Throws:
java.io.IOException
encodePayload
protected void encodePayload(java.nio.ByteBuffer buf)
- Specified by:
encodePayload in class AgentXPDU
getPayloadLength
public int getPayloadLength()
- Specified by:
getPayloadLength in class AgentXPDU
getSysUpTime
public int getSysUpTime()
getVariableBindings
public org.snmp4j.smi.VariableBinding[] getVariableBindings()
size
public int size()
getErrorIndex
public short getErrorIndex()
getErrorStatus
public short getErrorStatus()
setVariableBindings
public void setVariableBindings(org.snmp4j.smi.VariableBinding[] variableBindings)
setSysUpTime
public void setSysUpTime(int sysUpTime)
setErrorStatus
public void setErrorStatus(short errorStatus)
setErrorIndex
public void setErrorIndex(short errorIndex)
setErrorStatus
public void setErrorStatus(int errorStatus)
setErrorIndex
public void setErrorIndex(int errorIndex)
add
public void add(org.snmp4j.smi.VariableBinding vb)
clear
public void clear()
beforeEncode
protected void beforeEncode()
- Description copied from class:
AgentXPDU
- Initialize flags and other things before a PDU is encoded.
- Specified by:
beforeEncode in class AgentXPDU
toStringExtMembers
protected java.lang.String toStringExtMembers()
- Overrides:
toStringExtMembers in class AgentXPDU
Copyright © 2011 SNMP4J.org. All Rights Reserved.