Class AgentXPingPDU

All Implemented Interfaces:
Serializable

public class AgentXPingPDU extends AgentXContextPDU
The AgentXPingPDU represents the agentx-Notify-PDU defined by RFC 2741.
See Also:
  • Constructor Details

  • Method Details

    • 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.
      Specified by:
      decodeAfterContext in class AgentXContextPDU
      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).
      Specified by:
      encodeAfterContext in class AgentXContextPDU
      Parameters:
      buf - the target buffer.
    • getAfterContextLength

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