Package org.apache.openjpa.instrumentation

Examples of org.apache.openjpa.instrumentation.InstrumentationManager


        }

        // Get a DataCacheManager instance up front to avoid threading concerns on first call.
        // _conf.getDataCacheManagerInstance();

        InstrumentationManager imgr = _conf.getInstrumentationManagerInstance();
        if (imgr != null) {
            // Start all factory level instrumentation
            imgr.start(InstrumentationLevel.FACTORY, this);
        }
    }
View Full Code Here


        }

        // Get a DataCacheManager instance up front to avoid threading concerns on first call.
        // _conf.getDataCacheManagerInstance();

        InstrumentationManager imgr = _conf.getInstrumentationManagerInstance();
        if (imgr != null) {
            // Start all factory level instrumentation
            imgr.start(InstrumentationLevel.FACTORY, this);
        }
    }
View Full Code Here

        }

        // Get a DataCacheManager instance up front to avoid threading concerns on first call.
        // _conf.getDataCacheManagerInstance();

        InstrumentationManager imgr = _conf.getInstrumentationManagerInstance();
        if (imgr != null) {
            // Start all factory level instrumentation
            imgr.start(InstrumentationLevel.FACTORY, this);
        }
    }
View Full Code Here

            im.initialize(this, instrumentationProviders);
        instrumentationManager.set(im);
    }
   
    public InstrumentationManager getInstrumentationManagerInstance() {
        InstrumentationManager im = (InstrumentationManager) instrumentationManager.get();
        if (im == null) {
            im = (InstrumentationManager) instrumentationManager.instantiate(InstrumentationManager.class, this);
            if (im != null) {
                im.initialize(this, instrumentationProviders);
                im.start(InstrumentationLevel.IMMEDIATE, this);
            }
        }
        return im;
    }
View Full Code Here

        }

        // Get a DataCacheManager instance up front to avoid threading concerns on first call.
        // _conf.getDataCacheManagerInstance();

        InstrumentationManager imgr = _conf.getInstrumentationManagerInstance();
        if (imgr != null) {
            // Start all factory level instrumentation
            imgr.start(InstrumentationLevel.FACTORY, this);
        }
    }
View Full Code Here

            im.initialize(this, instrumentationProviders);
        instrumentationManager.set(im);
    }
   
    public InstrumentationManager getInstrumentationManagerInstance() {
        InstrumentationManager im = (InstrumentationManager) instrumentationManager.get();
        if (im == null) {
            im = (InstrumentationManager) instrumentationManager.instantiate(InstrumentationManager.class, this);
            if (im != null) {
                im.initialize(this, instrumentationProviders);
                im.start(InstrumentationLevel.IMMEDIATE, this);
            }
        }
        return im;
    }
View Full Code Here

        // Verify an EMF was created with the supplied instrumentation
        assertNotNull(oemf);

        // Verify an instrumentation manager is available
        InstrumentationManager mgr = oemf.getConfiguration().getInstrumentationManagerInstance();
        assertNotNull(mgr);
       
        // Get the in-band data cache instrument
        Set<InstrumentationProvider> providers = mgr.getProviders();
        assertNotNull(providers);
        assertEquals(1, providers.size());
        InstrumentationProvider provider = providers.iterator().next();
        assertEquals(provider.getClass(), JMXProvider.class);
        Instrument inst = provider.getInstrumentByName("DataCache");
View Full Code Here

        // Verify an EMF was created with the supplied instrumentation
        assertNotNull(oemf);

        // Verify an instrumentation manager is available
        InstrumentationManager mgr = oemf.getConfiguration().getInstrumentationManagerInstance();
        assertNotNull(mgr);
       
        // Get the in-band data cache instrument
        Set<InstrumentationProvider> providers = mgr.getProviders();
        assertNotNull(providers);
        assertEquals(1, providers.size());
        InstrumentationProvider provider = providers.iterator().next();
        assertEquals(provider.getClass(), JMXProvider.class);
View Full Code Here

        // Verify an EMF was created with the supplied instrumentation
        assertNotNull(oemf);

        // Verify an instrumentation manager is available
        InstrumentationManager mgr = oemf.getConfiguration().getInstrumentationManagerInstance();
        assertNotNull(mgr);
       
        // Get the in-band data cache instrument
        Set<InstrumentationProvider> providers = mgr.getProviders();
        assertNotNull(providers);
        assertEquals(1, providers.size());
        InstrumentationProvider provider = providers.iterator().next();
        assertEquals(provider.getClass(), JMXProvider.class);
View Full Code Here

            im.initialize(this, instrumentationProviders);
        instrumentationManager.set(im);
    }
   
    public InstrumentationManager getInstrumentationManagerInstance() {
        InstrumentationManager im = (InstrumentationManager) instrumentationManager.get();
        if (im == null) {
            im = (InstrumentationManager) instrumentationManager.instantiate(InstrumentationManager.class, this);
            if (im != null) {
                im.initialize(this, instrumentationProviders);
                im.start(InstrumentationLevel.IMMEDIATE, this);
            }
        }
        return im;
    }
View Full Code Here

TOP

Related Classes of org.apache.openjpa.instrumentation.InstrumentationManager

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.