Class AgentXGetPDU

All Implemented Interfaces:
Serializable

public class AgentXGetPDU extends AgentXRequestPDU
The AgentXGetPDU represents the agentx-Get-PDU defined by RFC 2741.
See Also:
  • Constructor Details

    • AgentXGetPDU

      public AgentXGetPDU(org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID[] oids)
      Creates a AgentXGetPDU.
      Parameters:
      context - the SNMPv3 context.
      oids - the requested OIDs.
    • AgentXGetPDU

      public AgentXGetPDU(AgentXMessageHeader header)
      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

      protected void decodeAfterContext(ByteBuffer buf, int length) throws IOException
      Description copied from class: AgentXContextPDU
      Decode this PDU after the end of the encoded context.
      Overrides:
      decodeAfterContext in class AgentXRequestPDU
      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.