Package com.ajjpj.asysmon.measure

Examples of com.ajjpj.asysmon.measure.ASimpleMeasurement


        }
    }

    @Override
    public void rollback(Savepoint savepoint) throws SQLException {
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "rollback");
        try {
            inner.rollback(savepoint);
        } finally {
            m.finish();
        }
    }
View Full Code Here


        }
    }

    @Override
    public void releaseSavepoint(Savepoint savepoint) throws SQLException {
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "releaseSavepoint");
        try {
            inner.releaseSavepoint(savepoint);
        } finally {
            m.finish();
        }
    }
View Full Code Here

    }

    @Override public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        final AHttpRequestDetails details = analyzer.analyze((HttpServletRequest) servletRequest);

        final ASimpleMeasurement measurement = getSysMon().start(details.getIdentifier());
        try {
            for(Map.Entry<String, String> entry: details.getParameters().entrySet()) {
                measurement.addParameter(entry.getKey(), entry.getValue());
            }

            filterChain.doFilter(servletRequest, servletResponse);
        }
        finally {
            measurement.finish();
        }
    }
View Full Code Here

    }

    @Override public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        final AHttpRequestDetails details = analyzer.analyze((HttpServletRequest) servletRequest);

        final ASimpleMeasurement measurement = getSysMon().start(details.getIdentifier());
        try {
            for(Map.Entry<String, String> entry: details.getParameters().entrySet()) {
                measurement.addParameter(entry.getKey(), entry.getValue());
            }

            filterChain.doFilter(servletRequest, servletResponse);
        }
        finally {
            measurement.finish();
        }
    }
View Full Code Here

    //------------------------------- transaction handling

    @Override
    public void commit() throws SQLException {
        makePassive();
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "commit");
        try {
            inner.commit();
        }
        finally {
            m.finish();
        }
    }
View Full Code Here

    }

    @Override
    public void rollback() throws SQLException {
        makePassive();
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "rollback");
        try {
            inner.rollback();
        } finally {
            m.finish();
        }
    }
View Full Code Here

        }
    }

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

        }
    }

    @Override
    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();
        }
    }
View Full Code Here

        }
    }

    @Override
    public void rollback(Savepoint savepoint) throws SQLException {
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "rollback");
        try {
            inner.rollback(savepoint);
        } finally {
            m.finish();
        }
    }
View Full Code Here

        }
    }

    @Override
    public void releaseSavepoint(Savepoint savepoint) throws SQLException {
        final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "releaseSavepoint");
        try {
            inner.releaseSavepoint(savepoint);
        } finally {
            m.finish();
        }
    }
View Full Code Here

TOP

Related Classes of com.ajjpj.asysmon.measure.ASimpleMeasurement

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.