|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.westhawk.snmp.event.TrapReceivedSupport
This is a utility class that can be used by classes that support trap listener functionality. You can use an instance of this class as a member field of your class and delegate various work to it.
Field Summary | |
static java.lang.String |
version_id
|
Constructor Summary | |
TrapReceivedSupport(java.lang.Object src)
The constructor. |
Method Summary | |
void |
addTrapListener(TrapListener listener)
Adds the specified trap listener to receive traps. |
void |
empty()
Removes all the listeners. |
void |
fireTrapReceived(Pdu pdu,
int hostPort)
Fires a decoded trap event. |
int |
getListenerCount()
Returns the number of listeners. |
void |
removeTrapListener(TrapListener listener)
Removes the specified trap listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String version_id
Constructor Detail |
public TrapReceivedSupport(java.lang.Object src)
src
- The source (SnmpContext) of the trap events when they are fired.Method Detail |
public void empty()
public int getListenerCount()
public void addTrapListener(TrapListener listener)
public void removeTrapListener(TrapListener listener)
public void fireTrapReceived(Pdu pdu, int hostPort)
pdu
- The decoded trap pdu.
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |