Package org.apache.oozie.service

Examples of org.apache.oozie.service.InstrumentationService


    /**
     * The created datasource instruments the active DB connections.
     */
    public InstrumentedBasicDataSource() {
        InstrumentationService instrumentationService = Services.get().get(InstrumentationService.class);
        if (instrumentationService != null) {
            Instrumentation instr = instrumentationService.get();
            instr.addSampler(INSTR_GROUP, INSTR_NAME, 60, 1, new Instrumentation.Variable<Long>() {
                public Long getValue() {
                    return (long) getNumActive();
                }
            });
View Full Code Here


    /**
     * The created datasource instruments the active DB connections.
     */
    public InstrumentedBasicDataSource() {
        InstrumentationService instrumentationService = Services.get().get(InstrumentationService.class);
        if (instrumentationService != null) {
            Instrumentation instr = instrumentationService.get();
            instr.addSampler(INSTR_GROUP, INSTR_NAME, 60, 1, new Instrumentation.Variable<Long>() {
                public Long getValue() {
                    return (long) getNumActive();
                }
            });
View Full Code Here

TOP

Related Classes of org.apache.oozie.service.InstrumentationService

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.