SNMP Stack 5_1

uk.co.westhawk.snmp.event
Class TrapEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--uk.co.westhawk.snmp.event.DecodedPduEvent
              |
              +--uk.co.westhawk.snmp.event.TrapEvent
All Implemented Interfaces:
java.io.Serializable

public class TrapEvent
extends DecodedPduEvent

The TrapEvent class. This class is delivered when a trap is received.

Version:
$Revision: 1.8 $ $Date: 2006/02/09 14:30:18 $
Author:
Birgit Arkesteijn
See Also:
Serialized Form

Field Summary
 
Fields inherited from class uk.co.westhawk.snmp.event.DecodedPduEvent
consumed
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TrapEvent(java.lang.Object source, Pdu pdu, int port)
          The constructor for a decoded trap pdu event.
 
Methods inherited from class uk.co.westhawk.snmp.event.DecodedPduEvent
consume, getHostPort, getPdu, isConsumed
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrapEvent

public TrapEvent(java.lang.Object source,
                 Pdu pdu,
                 int port)
The constructor for a decoded trap pdu event. The SnmpContext classes will fire decoded trap pdu events.

Parameters:
source - The source (SnmpContext) of the event
pdu - The pdu
port - The remote port number of the host where the pdu came from

SNMP Stack 5_1