Package org.snmp4j.agent.agentx
Class AgentXGetPDU
java.lang.Object
org.snmp4j.agent.agentx.AgentXPDU
org.snmp4j.agent.agentx.AgentXContextPDU
org.snmp4j.agent.agentx.AgentXRequestPDU
org.snmp4j.agent.agentx.AgentXGetPDU
- All Implemented Interfaces:
Serializable
The
AgentXGetPDU represents the agentx-Get-PDU defined by RFC 2741.- See Also:
-
Field Summary
Fields inherited from class org.snmp4j.agent.agentx.AgentXRequestPDU
nextOidFilter, rangesFields inherited from class org.snmp4j.agent.agentx.AgentXContextPDU
contextFields 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
ConstructorsConstructorDescriptionAgentXGetPDU(AgentXMessageHeader header) Creates aAgentXGetPDUfrom aAgentXMessageHeader.AgentXGetPDU(org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID[] oids) Creates aAgentXGetPDU. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecodeAfterContext(ByteBuffer buf, int length) Decode this PDU after the end of the encoded context.org.snmp4j.smi.OID[]getOids()Gets the OIDs.voidsetOids(org.snmp4j.smi.OID[] oids) Sets the OIDs.Methods inherited from class org.snmp4j.agent.agentx.AgentXRequestPDU
encodeAfterContext, getAfterContextLength, getRanges, size, toStringExtMembersMethods inherited from class org.snmp4j.agent.agentx.AgentXContextPDU
beforeEncode, decodePayload, encodePayload, getContext, getPayloadLength, setContextMethods 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
-
Constructor Details
-
AgentXGetPDU
public AgentXGetPDU(org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID[] oids) Creates aAgentXGetPDU.- Parameters:
context- the SNMPv3 context.oids- the requested OIDs.
-
AgentXGetPDU
Creates aAgentXGetPDUfrom aAgentXMessageHeader.- Parameters:
header- the message header.
-
-
Method Details
-
setOids
public void setOids(org.snmp4j.smi.OID[] oids) Sets the OIDs.- Parameters:
oids- the OIDs for the GET operation.
-
getOids
public org.snmp4j.smi.OID[] getOids()Gets the OIDs.- Returns:
- the OIDs requested.
-
decodeAfterContext
Description copied from class:AgentXContextPDUDecode this PDU after the end of the encoded context.- Overrides:
decodeAfterContextin classAgentXRequestPDU- 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 fewer data than expected.
-