站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 varia API Documentation 英文版文档

TrapEmitter (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档


org.jboss.jmx.adaptor.snmp.agent
Class TrapEmitter

java.lang.Object
  extended byorg.jboss.jmx.adaptor.snmp.agent.TrapEmitter

public class TrapEmitter
extends Object

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: 1.3.6.2 $
Author:
Spyros Pollatos, Dimitris Andreadis

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

TrapEmitter

public TrapEmitter(String trapFactoryClassName,
                   Counter trapCount,
                   Clock uptime,
                   String managersResName,
                   String notificationMapResName)
Builds a TrapEmitter object for sending SNMP V1 or V2 traps.

Method Detail

start

public void start()
           throws Exception
Complete emitter initialisation

Throws:
Exception

stop

public void stop()
          throws Exception
Perform shutdown

Throws:
Exception

send

public void send(javax.management.Notification n)
          throws Exception
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 or sending of the trap


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.