|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--uk.co.westhawk.snmp.event.DecodedPduEvent
The DecodedPduEvent class. This class is delivered when a pdu is received.
Field Summary | |
protected boolean |
consumed
|
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
DecodedPduEvent(java.lang.Object source,
Pdu p,
int prt)
The constructor for a decoded pdu event. |
Method Summary | |
void |
consume()
Consumes this event so that it will not be sent to any other listeners. |
int |
getHostPort()
The remote port number of the host where the pdu came from. |
Pdu |
getPdu()
The pdu. |
boolean |
isConsumed()
Returns whether or not this event has been consumed. |
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 |
Field Detail |
protected boolean consumed
Constructor Detail |
public DecodedPduEvent(java.lang.Object source, Pdu p, int prt)
source
- The source (SnmpContext) of the eventp
- The pduprt
- The remote port number of the host where the pdu came fromgetHostPort()
,
getPdu()
Method Detail |
public int getHostPort()
public Pdu getPdu()
public void consume()
public boolean isConsumed()
consume()
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |