| java.lang.Object org.jboss.jmx.adaptor.snmp.agent.TrapEmitter
TrapEmitter | public class TrapEmitter (Code) | | TrapEmitter is a class that manages SNMP trap emission.
Currently, it allows to send V1 or V2 traps to one or more subscribed SNMP
managers defined by their IP address, listening port number and expected
SNMP version.
version: $Revision: 32504 $ author: Spyros Pollatos author: Dimitris Andreadis |
Constructor Summary | |
public | TrapEmitter(String trapFactoryClassName, Counter trapCount, Clock uptime, String managersResName, String notificationMapResName) Builds a TrapEmitter object for sending SNMP V1 or V2 traps. |
Method Summary | |
public void | send(Notification n) Intercepts the notification and after translating it to a trap sends it
along. | public void | start() | public void | stop() |
TrapEmitter | public TrapEmitter(String trapFactoryClassName, Counter trapCount, Clock uptime, String managersResName, String notificationMapResName)(Code) | | Builds a TrapEmitter object for sending SNMP V1 or V2 traps.
|
send | public void send(Notification n) throws Exception(Code) | | Intercepts the notification and after translating it to a trap sends it
along.
Parameters: n - notification to be sent throws: Exception - if an error occurs during the preparation orsending of the trap |
start | public void start() throws Exception(Code) | | Complete emitter initialisation
|
|
|