org.jboss.jmx.adaptor.snmp.test
Class NotificationProducerService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.jmx.adaptor.snmp.test.NotificationProducerService
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, NotificationProducerServiceMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean
public class NotificationProducerService
- extends ServiceMBeanSupport
- implements NotificationProducerServiceMBean
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
- Version:
- $Revision: 23902 $
- Author:
- Spyros Pollatos, Dimitris Andreadis
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
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 |
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, startService, stop, stopService, unsetKernelControllerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationProducerService
public NotificationProducerService()
sendV1
public void sendV1()
throws Exception
- Sends a test Notification of type "V1"
- Specified by:
sendV1
in interface NotificationProducerServiceMBean
- Throws:
Exception
sendV2
public void sendV2()
throws Exception
- Sends a test Notification of type "V2"
- Specified by:
sendV2
in interface NotificationProducerServiceMBean
- Throws:
Exception
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.