Class PingEvent<A extends org.snmp4j.smi.Address>

java.lang.Object
java.util.EventObject
org.snmp4j.agent.agentx.event.PingEvent<A>
All Implemented Interfaces:
Serializable

public class PingEvent<A extends org.snmp4j.smi.Address> extends EventObject
The PingEvent object describes an AgentX ping result.
Version:
3.1.0
Author:
Frank Fock
See Also:
  • Constructor Details

  • Method Details

    • getResponse

      public AgentXResponsePDU getResponse()
      Gets the ping response.
      Returns:
      a AgentXResponsePDU.
    • getSession

      public AgentXSession<A> getSession()
      Gets the AgentXSession.
      Returns:
      a AgentXSession.
    • isCloseSession

      public boolean isCloseSession()
      Checks if the session is closing.
      Returns:
      true if the session is closed or closing (see setCloseSession(boolean).
    • isResetSession

      public boolean isResetSession()
      Checks if the session is resetting.
      Returns:
      true if the session is resetting or resetted (see setResetSession(boolean).
    • getError

      public Exception getError()
      Gets the exception that caused on error.
      Returns:
      an exception.
    • setCloseSession

      public void setCloseSession(boolean closeSession)
      Request closing of the session.
      Parameters:
      closeSession - true to request closing the session.
    • setResetSession

      public void setResetSession(boolean resetSession)
      Request resetting of the session.
      Parameters:
      resetSession - true to request a reset of the session.
    • toString

      public String toString()
      Overrides:
      toString in class EventObject