public class TrapReceivedSupport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version_id |
Constructor and Description |
---|
TrapReceivedSupport(java.lang.Object src)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final java.lang.String version_id
public TrapReceivedSupport(java.lang.Object src)
src
- The source (SnmpContext) of the trap events when they are fired.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.