Package com.ajjpj.asysmon.measure

Examples of com.ajjpj.asysmon.measure.ASimpleMeasurement.finish()


        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "commit");
        try {
            inner.commit();
        }
        finally {
            m.finish();
        }
    }

    @Override
    public void rollback() throws SQLException {
View Full Code Here


        makeActive();
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "rollback");
        try {
            inner.rollback();
        } finally {
            m.finish();
        }
    }

    @Override
    public Savepoint setSavepoint() throws SQLException {
View Full Code Here

        makeActive();
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "setSavepoint");
        try {
            return inner.setSavepoint();
        } finally {
            m.finish();
        }
    }

    @Override
    public Savepoint setSavepoint(String name) throws SQLException {
View Full Code Here

        makeActive();
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "setSavepoint");
        try {
            return inner.setSavepoint(name);
        } finally {
            m.finish();
        }
    }

    @Override
    public void rollback(Savepoint savepoint) throws SQLException {
View Full Code Here

        makeActive();
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "rollback");
        try {
            inner.rollback(savepoint);
        } finally {
            m.finish();
        }
    }

    @Override
    public void releaseSavepoint(Savepoint savepoint) throws SQLException {
View Full Code Here

        makeActive();
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "releaseSavepoint");
        try {
            inner.releaseSavepoint(savepoint);
        } finally {
            m.finish();
        }
    }

    //------------------- misc / ignored by ASysMon
View Full Code Here

        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "commit");
        try {
            inner.commit();
        }
        finally {
            m.finish();
        }
    }

    @Override
    public void rollback() throws SQLException {
View Full Code Here

        makePassive();
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "rollback");
        try {
            inner.rollback();
        } finally {
            m.finish();
        }
    }

    @Override
    public Savepoint setSavepoint() throws SQLException {
View Full Code Here

    public Savepoint setSavepoint() throws SQLException {
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "setSavepoint");
        try {
            return inner.setSavepoint();
        } finally {
            m.finish();
        }
    }

    @Override
    public Savepoint setSavepoint(String name) throws SQLException {
View Full Code Here

    public Savepoint setSavepoint(String name) throws SQLException {
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "setSavepoint");
        try {
            return inner.setSavepoint(name);
        } finally {
            m.finish();
        }
    }

    @Override
    public void rollback(Savepoint savepoint) throws SQLException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.