org.jboss.jmx.adaptor.snmp.test
Class NotificationProducerService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.jmx.adaptor.snmp.test.NotificationProducerService
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class NotificationProducerService
extends ServiceMBeanSupport (src)

NotificationProducerService is a test class with an MBean interface used to produce simple JMX notifications to be intercepted and mapped to SNMP traps by the snmp JMX adaptor


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
NotificationProducerService()
           
 
Method Summary
 void sendV1()
          Sends a test Notification of type "V1"
 void sendV2()
          Sends a test Notification of type "V2"
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationProducerService

public NotificationProducerService()
Method Detail

sendV1

public void sendV1()
            throws java.lang.Exception
Sends a test Notification of type "V1"

Throws:
java.lang.Exception

sendV2

public void sendV2()
            throws java.lang.Exception
Sends a test Notification of type "V2"

Throws:
java.lang.Exception