Class AgentXCleanupSetPDU

java.lang.Object
org.snmp4j.agent.agentx.AgentXPDU
org.snmp4j.agent.agentx.AgentXCleanupSetPDU
All Implemented Interfaces:
Serializable

public class AgentXCleanupSetPDU extends AgentXPDU
The AgentXCleanupSetPDU represents the agentx-CleanupSet-PDU defined by RFC 2741.
See Also:
  • Constructor Details

  • Method Details

    • encodePayload

      protected void encodePayload(ByteBuffer buf)
      Description copied from class: AgentXPDU
      Encode the payload to the given byte buffer.
      Specified by:
      encodePayload in class AgentXPDU
      Parameters:
      buf - the buffer.
    • getPayloadLength

      public int getPayloadLength()
      Description copied from class: AgentXPDU
      Gets the payload length.
      Specified by:
      getPayloadLength in class AgentXPDU
      Returns:
      the payload length.
    • decodePayload

      public void decodePayload(ByteBuffer buf, int length) throws IOException
      Description copied from class: AgentXPDU
      Decode this PDU's payload.
      Specified by:
      decodePayload in class AgentXPDU
      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.
    • 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