Package uk.co.westhawk.snmp.event
Class DecodedPduEvent
java.lang.Object
java.util.EventObject
uk.co.westhawk.snmp.event.DecodedPduEvent
- All Implemented Interfaces:
 Serializable
- Direct Known Subclasses:
 RequestPduEvent,TrapEvent
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 Summary
ConstructorsConstructorDescriptionDecodedPduEvent(Object source, Pdu p, int prt) The constructor for a decoded pdu event. - 
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString 
- 
Constructor Details
- 
DecodedPduEvent
The constructor for a decoded pdu event. The SnmpContext classes will fire decoded pdu events.- Parameters:
 source- The source (SnmpContext) of the eventp- The pduprt- 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
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:
 
 
 -