Package net.brdloush.dbstopwatch
Class P6SpyStatsCollector
java.lang.Object
com.p6spy.engine.event.JdbcEventListener
net.brdloush.dbstopwatch.P6SpyStatsCollector
public class P6SpyStatsCollector
extends com.p6spy.engine.event.JdbcEventListener
P6Spy event listener that captures real JDBC execution times
including result set processing time.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidonAfterExecute(com.p6spy.engine.common.PreparedStatementInformation statementInformation, long timeElapsedNanos, SQLException e) voidonAfterExecute(com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, String sql, SQLException e) voidonAfterExecuteBatch(com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, int[] updateCounts, SQLException e) voidonAfterExecuteQuery(com.p6spy.engine.common.PreparedStatementInformation statementInformation, long timeElapsedNanos, SQLException e) voidonAfterExecuteQuery(com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, String sql, SQLException e) voidonAfterExecuteUpdate(com.p6spy.engine.common.PreparedStatementInformation statementInformation, long timeElapsedNanos, int rowCount, SQLException e) voidonAfterExecuteUpdate(com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, String sql, int rowCount, SQLException e) static voidreset()Methods inherited from class com.p6spy.engine.event.JdbcEventListener
onAfterAddBatch, onAfterAddBatch, onAfterCallableStatementSet, onAfterCommit, onAfterConnectionClose, onAfterGetConnection, onAfterGetResultSet, onAfterPreparedStatementSet, onAfterResultSetClose, onAfterResultSetGet, onAfterResultSetGet, onAfterResultSetNext, onAfterRollback, onAfterSetAutoCommit, onAfterStatementClose, onBeforeAddBatch, onBeforeAddBatch, onBeforeCommit, onBeforeExecute, onBeforeExecute, onBeforeExecuteBatch, onBeforeExecuteQuery, onBeforeExecuteQuery, onBeforeExecuteUpdate, onBeforeExecuteUpdate, onBeforeGetConnection, onBeforeResultSetNext, onBeforeRollback, onBeforeSetAutoCommit, onConnectionWrapped
-
Constructor Details
-
P6SpyStatsCollector
public P6SpyStatsCollector()
-
-
Method Details
-
markBlockStart
public static void markBlockStart() -
getBlockStats
-
reset
public static void reset() -
onAfterExecuteQuery
public void onAfterExecuteQuery(com.p6spy.engine.common.PreparedStatementInformation statementInformation, long timeElapsedNanos, SQLException e) - Overrides:
onAfterExecuteQueryin classcom.p6spy.engine.event.JdbcEventListener
-
onAfterExecuteQuery
public void onAfterExecuteQuery(com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, String sql, SQLException e) - Overrides:
onAfterExecuteQueryin classcom.p6spy.engine.event.JdbcEventListener
-
onAfterExecuteUpdate
public void onAfterExecuteUpdate(com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, String sql, int rowCount, SQLException e) - Overrides:
onAfterExecuteUpdatein classcom.p6spy.engine.event.JdbcEventListener
-
onAfterExecuteUpdate
public void onAfterExecuteUpdate(com.p6spy.engine.common.PreparedStatementInformation statementInformation, long timeElapsedNanos, int rowCount, SQLException e) - Overrides:
onAfterExecuteUpdatein classcom.p6spy.engine.event.JdbcEventListener
-
onAfterExecute
public void onAfterExecute(com.p6spy.engine.common.PreparedStatementInformation statementInformation, long timeElapsedNanos, SQLException e) - Overrides:
onAfterExecutein classcom.p6spy.engine.event.JdbcEventListener
-
onAfterExecute
public void onAfterExecute(com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, String sql, SQLException e) - Overrides:
onAfterExecutein classcom.p6spy.engine.event.JdbcEventListener
-
onAfterExecuteBatch
public void onAfterExecuteBatch(com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, int[] updateCounts, SQLException e) - Overrides:
onAfterExecuteBatchin classcom.p6spy.engine.event.JdbcEventListener
-