Class DecodedPduEvent

java.lang.Object
java.util.EventObject
uk.co.westhawk.snmp.event.DecodedPduEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RequestPduEvent, TrapEvent

public abstract class DecodedPduEvent extends EventObject
The DecodedPduEvent class. This class is delivered when a pdu is received.
Since:
4_14
Version:
$Revision: 1.5 $ $Date: 2006/02/09 14:30:18 $
Author:
Birgit Arkesteijn
See Also:
  • Constructor Details

    • DecodedPduEvent

      public DecodedPduEvent(Object source, Pdu p, int prt)
      The constructor for a decoded pdu event. The SnmpContext classes will fire decoded pdu events.
      Parameters:
      source - The source (SnmpContext) of the event
      p - The pdu
      prt - The remote port number of the host where the pdu came from
      See Also:
  • Method Details

    • getHostPort

      public int getHostPort()
      The remote port number of the host where the pdu came from.
      Returns:
      The remote port number of the host or -1.
    • getPdu

      public Pdu getPdu()
      The pdu. The pdu is part of a decoded pdu event.
      Returns:
      The decoded Pdu.
    • consume

      public void consume()
      Consumes this event so that it will not be sent to any other listeners.
    • isConsumed

      public boolean isConsumed()
      Returns whether or not this event has been consumed.
      See Also: