|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jmx.adaptor.snmp.agent.TrapEmitter
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.
Constructor Summary | |
TrapEmitter(String trapFactoryClassName,
Counter trapCount,
Clock uptime,
String managersResName,
String notificationMapResName)
Builds a TrapEmitter object for sending SNMP V1 or V2 traps. |
Method Summary | |
void |
send(javax.management.Notification n)
Intercepts the notification and after translating it to a trap sends it along. |
void |
start()
Complete emitter initialisation |
void |
stop()
Perform shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TrapEmitter(String trapFactoryClassName, Counter trapCount, Clock uptime, String managersResName, String notificationMapResName)
Method Detail |
public void start() throws Exception
Exception
public void stop() throws Exception
Exception
public void send(javax.management.Notification n) throws Exception
n
- notification to be sent
Exception
- if an error occurs during the preparation or
sending of the trap
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |