Package org.apache.sirona.stopwatches

Examples of org.apache.sirona.stopwatches.CounterStopWatch


    private CallableStatement monitor(final CallableStatement statement, final String sql) {
        return CallableStatement.class.cast(Proxy.newProxyInstance(ClassLoaders.current(), new Class<?>[]{CallableStatement.class}, new MonitoredPreparedStatement(statement, sql)));
    }

    public static Connection monitor(final Connection connection, final Counter counter) {
        final StopWatch stopWatch = new CounterStopWatch(counter);
        return Connection.class.cast(Proxy.newProxyInstance(ClassLoaders.current(), new Class<?>[]{Connection.class}, new MonitoredConnection(connection, stopWatch)));
    }
View Full Code Here


        }
    }

    @Override
    public StopWatch start(final Counter monitor) {
        return new CounterStopWatch(monitor);
    }
View Full Code Here

        }
    }

    @Override
    public StopWatch start(final Counter monitor) {
        return new CounterStopWatch(monitor);
    }
View Full Code Here

    private CallableStatement monitor(final CallableStatement statement, final String sql) {
        return CallableStatement.class.cast(Proxy.newProxyInstance(ClassLoaders.current(), new Class<?>[]{CallableStatement.class}, new MonitoredPreparedStatement(statement, sql)));
    }

    public static Connection monitor(final Connection connection, final Counter counter) {
        final StopWatch stopWatch = new CounterStopWatch(counter);
        return Connection.class.cast(Proxy.newProxyInstance(ClassLoaders.current(), new Class<?>[]{Connection.class}, new MonitoredConnection(connection, stopWatch)));
    }
View Full Code Here

TOP

Related Classes of org.apache.sirona.stopwatches.CounterStopWatch

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.