|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | 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(java.lang.String trapFactoryClassName,
Counter (src) trapCount,
Clock (src) uptime,
java.lang.String managersResName,
java.lang.String notificationMapResName)
Builds a TrapEmitter object for sending SNMP V1 or V2 traps. |
Method Summary | |
void |
send(Notification (src) 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(java.lang.String trapFactoryClassName, Counter (src) trapCount, Clock (src) uptime, java.lang.String managersResName, java.lang.String notificationMapResName)
Method Detail |
public void start() throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
java.lang.Exception
public void send(Notification (src) n) throws java.lang.Exception
n
- notification to be sent
java.lang.Exception
- if an error occurs during the preparation or
sending of the trap
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |