Class AgentXGetBulkPDU

All Implemented Interfaces:
Serializable

public class AgentXGetBulkPDU extends AgentXRequestPDU
The AgentXGetBulkPDU represents the agentx-GetBulk-PDU defined by RFC 2741.
See Also:
  • Field Details

    • maxRepetitions

      protected short maxRepetitions
      GETBULK maximum repetitions.
    • nonRepeaters

      protected short nonRepeaters
      GETBULK non-repeaters.
  • Constructor Details

    • AgentXGetBulkPDU

      public AgentXGetBulkPDU(org.snmp4j.smi.OctetString context, short maxRepetitions, short nonRepeaters, org.snmp4j.agent.MOScope[] ranges)
      Creates a AgentXOpenPDU.
      Parameters:
      context - the SNMPv3 context.
      maxRepetitions - the maximum GETBULK repetitions.
      nonRepeaters - the GETBULK non-repeaters.
      ranges - the request OID search ranges.
    • AgentXGetBulkPDU

      public AgentXGetBulkPDU(AgentXMessageHeader header)
      Parameters:
      header - the message header.
  • Method Details

    • getMaxRepetitions

      public short getMaxRepetitions()
      Gets the maximum GETBULK repetitions.
      Returns:
      the maximum repetitions.
    • getNonRepeaters

      public short getNonRepeaters()
      Gets the non repeaters.
      Returns:
      the non repeaters.
    • setMaxRepetitions

      public void setMaxRepetitions(short maxRepetitions)
      Sets the maximum repetitions for the GETBULK.
      Parameters:
      maxRepetitions - the maximum repetitions.
    • setNonRepeaters

      public void setNonRepeaters(short nonRepeaters)
      Sets the non repeaters (0 for no non-repeaters).
      Parameters:
      nonRepeaters - the non repeaters.
    • 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.
    • encodeAfterContext

      protected void encodeAfterContext(ByteBuffer buf)
      Description copied from class: AgentXContextPDU
      Encode this PDU after already encoded context (thus context will not be encoded by this operation).
      Overrides:
      encodeAfterContext in class AgentXRequestPDU
      Parameters:
      buf - the target buffer.
    • getAfterContextLength

      protected int getAfterContextLength()
      Description copied from class: AgentXContextPDU
      Gets the encoded length after an already encoded context.
      Overrides:
      getAfterContextLength in class AgentXRequestPDU
      Returns:
      the BER encoded length (without context).
    • toStringExtMembers

      protected String toStringExtMembers()
      Description copied from class: AgentXPDU
      Returns a string representation of the PDU members. An empty string is returned by this base class.
      Overrides:
      toStringExtMembers in class AgentXRequestPDU
      Returns:
      a string representation of the PDU members.