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

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.jmx.adaptor.snmp.test.NotificationProducerService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, NotificationProducerServiceMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class NotificationProducerService
extends org.jboss.system.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: 110475 $
Author:
Spyros Pollatos, Dimitris Andreadis

Field Summary
 java.lang.String V1_TEST_NOTIFICATION
          Notification types for testing
 java.lang.String V2_TEST_NOTIFICATION
           
 java.lang.String V3_TEST_NOTIFICATION
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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
 
Constructor Summary
NotificationProducerService()
           
 
Method Summary
 void get()
          Sends a test GET request
 void getBulk()
          Sends a test SNMP GETBULK
 void getNext()
          Sends a test GETNEXT request
 void sendV1()
          Sends a test Notification of type "V1"
 void sendV2()
          Sends a test Notification of type "V2"
 void sendV3()
          Sends a test Notification of type "V3"
 void set()
          Sends a test SET request
 
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 org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

V1_TEST_NOTIFICATION

public final java.lang.String V1_TEST_NOTIFICATION
Notification types for testing

See Also:
Constant Field Values

V2_TEST_NOTIFICATION

public final java.lang.String V2_TEST_NOTIFICATION
See Also:
Constant Field Values

V3_TEST_NOTIFICATION

public final java.lang.String V3_TEST_NOTIFICATION
See Also:
Constant Field Values
Constructor Detail

NotificationProducerService

public NotificationProducerService()
Method Detail

sendV1

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

Specified by:
sendV1 in interface NotificationProducerServiceMBean
Throws:
java.lang.Exception

sendV2

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

Specified by:
sendV2 in interface NotificationProducerServiceMBean
Throws:
java.lang.Exception

sendV3

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

Specified by:
sendV3 in interface NotificationProducerServiceMBean
Throws:
java.lang.Exception

getBulk

public void getBulk()
Description copied from interface: NotificationProducerServiceMBean
Sends a test SNMP GETBULK

Specified by:
getBulk in interface NotificationProducerServiceMBean

getNext

public void getNext()
Sends a test GETNEXT request

Specified by:
getNext in interface NotificationProducerServiceMBean

get

public void get()
Sends a test GET request

Specified by:
get in interface NotificationProducerServiceMBean

set

public void set()
Sends a test SET request

Specified by:
set in interface NotificationProducerServiceMBean


Copyright © 2011. All Rights Reserved.