public class OutageJdbcEventListener extends SimpleJdbcEventListener
P6OutageDetector
Modifier and Type | Field and Description |
---|---|
static OutageJdbcEventListener |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
onAfterAnyAddBatch(StatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed before any
Statement .addBatch* method is invoked |
void |
onAfterAnyExecute(StatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after any
Statement .execute* method is invoked |
void |
onAfterCommit(ConnectionInformation connectionInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after the
Connection.commit() method is invoked. |
void |
onAfterRollback(ConnectionInformation connectionInformation,
long timeElapsedNanos,
SQLException e)
This callback method is executed after the
Connection.rollback() or the Connection.rollback(Savepoint) method is invoked. |
void |
onBeforeAnyAddBatch(StatementInformation statementInformation)
This callback method is executed before any
Statement .addBatch* method is invoked |
void |
onBeforeAnyExecute(StatementInformation statementInformation)
This callback method is executed before any
Statement .execute* method is invoked |
void |
onBeforeCommit(ConnectionInformation connectionInformation)
This callback method is executed before the
Connection.commit() method is invoked. |
void |
onBeforeRollback(ConnectionInformation connectionInformation)
This callback method is executed before the
Connection.rollback() or the Connection.rollback(Savepoint) method is invoked. |
onAfterAddBatch, onAfterAddBatch, onAfterExecute, onAfterExecute, onAfterExecuteBatch, onAfterExecuteQuery, onAfterExecuteQuery, onAfterExecuteUpdate, onAfterExecuteUpdate, onBeforeAddBatch, onBeforeAddBatch, onBeforeExecute, onBeforeExecute, onBeforeExecuteBatch, onBeforeExecuteQuery, onBeforeExecuteQuery, onBeforeExecuteUpdate, onBeforeExecuteUpdate
onAfterCallableStatementSet, onAfterConnectionClose, onAfterGetResultSet, onAfterPreparedStatementSet, onAfterResultSetClose, onAfterResultSetGet, onAfterResultSetGet, onAfterResultSetNext, onBeforeResultSetNext
public static final OutageJdbcEventListener INSTANCE
public void onBeforeCommit(ConnectionInformation connectionInformation)
JdbcEventListener
Connection.commit()
method is invoked.onBeforeCommit
in class JdbcEventListener
connectionInformation
- The meta information about the Connection
being invokedpublic void onAfterCommit(ConnectionInformation connectionInformation, long timeElapsedNanos, SQLException e)
JdbcEventListener
Connection.commit()
method is invoked.onAfterCommit
in class JdbcEventListener
connectionInformation
- The meta information about the Connection
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeRollback(ConnectionInformation connectionInformation)
JdbcEventListener
Connection.rollback()
or the Connection.rollback(Savepoint)
method is invoked.onBeforeRollback
in class JdbcEventListener
connectionInformation
- The meta information about the Connection
being invokedpublic void onAfterRollback(ConnectionInformation connectionInformation, long timeElapsedNanos, SQLException e)
JdbcEventListener
Connection.rollback()
or the Connection.rollback(Savepoint)
method is invoked.onAfterRollback
in class JdbcEventListener
connectionInformation
- The meta information about the Connection
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeAnyAddBatch(StatementInformation statementInformation)
SimpleJdbcEventListener
Statement
.addBatch* method is invokedonBeforeAnyAddBatch
in class SimpleJdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onAfterAnyAddBatch(StatementInformation statementInformation, long timeElapsedNanos, SQLException e)
SimpleJdbcEventListener
Statement
.addBatch* method is invokedonAfterAnyAddBatch
in class SimpleJdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).public void onBeforeAnyExecute(StatementInformation statementInformation)
SimpleJdbcEventListener
Statement
.execute* method is invokedonBeforeAnyExecute
in class SimpleJdbcEventListener
statementInformation
- The meta information about the Statement
being invokedpublic void onAfterAnyExecute(StatementInformation statementInformation, long timeElapsedNanos, SQLException e)
SimpleJdbcEventListener
Statement
.execute* method is invokedonAfterAnyExecute
in class SimpleJdbcEventListener
statementInformation
- The meta information about the Statement
being invokedtimeElapsedNanos
- The execution time of the execute calle
- The SQLException
which may be triggered by the call (null
if
there was no exception).Copyright © 2002-2016 P6Spy. All Rights Reserved.