Package org.objectweb.celtix.bus.management.jmx.export

Examples of org.objectweb.celtix.bus.management.jmx.export.AnnotationTestInstrumentation


        bus.shutdown(true);
        assertEquals("Instrumented stuff not removed from list", 0, list.size());
    }
   
    public void testCustemerInstrumentationByEvent() throws BusException {
        AnnotationTestInstrumentation ati = new AnnotationTestInstrumentation();
        bus.sendEvent(new ComponentCreatedEvent(ati));
       
        List<Instrumentation> list = im.getAllInstrumentation();
        assertEquals("Not exactly the number of instrumented item", 3, list.size());
       
View Full Code Here


        assertEquals("Instrumented stuff not removed from list", 0, list.size());
       
    }
   
    public void testCustemerInstrumentationByInstrumentationManager() throws BusException {
        AnnotationTestInstrumentation ati = new AnnotationTestInstrumentation();
        im.register(ati);
       
        List<Instrumentation> list = im.getAllInstrumentation();
        assertEquals("Not exactly the number of instrumented item", 3, list.size());
       
View Full Code Here

        connector.setDaemon(false);
        connector.setThreaded(false);
        connector.setJMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:9913/jmxrmi");
        manager.init(policy);
        // setup the fack instrumentation
        AnnotationTestInstrumentation im = new AnnotationTestInstrumentation();
        ObjectName name = JMXUtils.getObjectName(im.getInstrumentationName(),
                                                 im.getUniqueInstrumentationName(),
                                                 BUS_ID);
      
        im.setName("John Smith");         
        manager.processEvent(new InstrumentationCreatedEvent(im));
       
        try {           
            Object val = manager.getMBeanServer().getAttribute(name, NAME_ATTRIBUTE);
            assertEquals("Incorrect result", "John Smith", val);
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.bus.management.jmx.export.AnnotationTestInstrumentation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.