public class TraceJdbcEventListener
extends com.p6spy.engine.event.SimpleJdbcEventListener
implements org.springframework.core.Ordered
| Modifier and Type | Field and Description |
|---|---|
static int |
ORDER
Bean order.
|
| Constructor and Description |
|---|
TraceJdbcEventListener(org.springframework.beans.factory.BeanFactory beanFactory,
DataSourceNameResolver dataSourceNameResolver,
List<TraceType> traceTypes,
boolean includeParameterValues,
List<TraceListenerStrategySpanCustomizer<? super CommonDataSource>> customizers) |
TraceJdbcEventListener(Tracer tracer,
DataSourceNameResolver dataSourceNameResolver,
List<TraceType> traceTypes,
boolean includeParameterValues,
List<TraceListenerStrategySpanCustomizer<? super CommonDataSource>> customizers) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
onAfterAnyExecute(com.p6spy.engine.common.StatementInformation statementInformation,
long timeElapsedNanos,
SQLException e) |
void |
onAfterCommit(com.p6spy.engine.common.ConnectionInformation connectionInformation,
long timeElapsedNanos,
SQLException e) |
void |
onAfterConnectionClose(com.p6spy.engine.common.ConnectionInformation connectionInformation,
SQLException e) |
void |
onAfterExecuteUpdate(com.p6spy.engine.common.PreparedStatementInformation statementInformation,
long timeElapsedNanos,
int rowCount,
SQLException e) |
void |
onAfterExecuteUpdate(com.p6spy.engine.common.StatementInformation statementInformation,
long timeElapsedNanos,
String sql,
int rowCount,
SQLException e) |
void |
onAfterGetConnection(com.p6spy.engine.common.ConnectionInformation connectionInformation,
SQLException e) |
void |
onAfterResultSetClose(com.p6spy.engine.common.ResultSetInformation resultSetInformation,
SQLException e) |
void |
onAfterRollback(com.p6spy.engine.common.ConnectionInformation connectionInformation,
long timeElapsedNanos,
SQLException e) |
void |
onAfterStatementClose(com.p6spy.engine.common.StatementInformation statementInformation,
SQLException e) |
void |
onBeforeAnyExecute(com.p6spy.engine.common.StatementInformation statementInformation) |
void |
onBeforeGetConnection(com.p6spy.engine.common.ConnectionInformation connectionInformation) |
void |
onBeforeResultSetNext(com.p6spy.engine.common.ResultSetInformation resultSetInformation) |
onAfterAddBatch, onAfterAddBatch, onAfterAnyAddBatch, onAfterExecute, onAfterExecute, onAfterExecuteBatch, onAfterExecuteQuery, onAfterExecuteQuery, onBeforeAddBatch, onBeforeAddBatch, onBeforeAnyAddBatch, onBeforeExecute, onBeforeExecute, onBeforeExecuteBatch, onBeforeExecuteQuery, onBeforeExecuteQuery, onBeforeExecuteUpdate, onBeforeExecuteUpdateonAfterCallableStatementSet, onAfterGetResultSet, onAfterPreparedStatementSet, onAfterResultSetGet, onAfterResultSetGet, onAfterResultSetNext, onAfterSetAutoCommit, onBeforeCommit, onBeforeRollback, onBeforeSetAutoCommit, onConnectionWrappedpublic static final int ORDER
public TraceJdbcEventListener(Tracer tracer, DataSourceNameResolver dataSourceNameResolver, List<TraceType> traceTypes, boolean includeParameterValues, List<TraceListenerStrategySpanCustomizer<? super CommonDataSource>> customizers)
public TraceJdbcEventListener(org.springframework.beans.factory.BeanFactory beanFactory,
DataSourceNameResolver dataSourceNameResolver,
List<TraceType> traceTypes,
boolean includeParameterValues,
List<TraceListenerStrategySpanCustomizer<? super CommonDataSource>> customizers)
public void onBeforeGetConnection(com.p6spy.engine.common.ConnectionInformation connectionInformation)
onBeforeGetConnection in class com.p6spy.engine.event.JdbcEventListenerpublic void onAfterGetConnection(com.p6spy.engine.common.ConnectionInformation connectionInformation,
SQLException e)
onAfterGetConnection in class com.p6spy.engine.event.JdbcEventListenerpublic void onBeforeAnyExecute(com.p6spy.engine.common.StatementInformation statementInformation)
onBeforeAnyExecute in class com.p6spy.engine.event.SimpleJdbcEventListenerpublic void onAfterAnyExecute(com.p6spy.engine.common.StatementInformation statementInformation,
long timeElapsedNanos,
SQLException e)
onAfterAnyExecute in class com.p6spy.engine.event.SimpleJdbcEventListenerpublic void onBeforeResultSetNext(com.p6spy.engine.common.ResultSetInformation resultSetInformation)
onBeforeResultSetNext in class com.p6spy.engine.event.JdbcEventListenerpublic void onAfterExecuteUpdate(com.p6spy.engine.common.PreparedStatementInformation statementInformation,
long timeElapsedNanos,
int rowCount,
SQLException e)
onAfterExecuteUpdate in class com.p6spy.engine.event.SimpleJdbcEventListenerpublic void onAfterExecuteUpdate(com.p6spy.engine.common.StatementInformation statementInformation,
long timeElapsedNanos,
String sql,
int rowCount,
SQLException e)
onAfterExecuteUpdate in class com.p6spy.engine.event.SimpleJdbcEventListenerpublic void onAfterStatementClose(com.p6spy.engine.common.StatementInformation statementInformation,
SQLException e)
onAfterStatementClose in class com.p6spy.engine.event.JdbcEventListenerpublic void onAfterResultSetClose(com.p6spy.engine.common.ResultSetInformation resultSetInformation,
SQLException e)
onAfterResultSetClose in class com.p6spy.engine.event.JdbcEventListenerpublic void onAfterCommit(com.p6spy.engine.common.ConnectionInformation connectionInformation,
long timeElapsedNanos,
SQLException e)
onAfterCommit in class com.p6spy.engine.event.JdbcEventListenerpublic void onAfterRollback(com.p6spy.engine.common.ConnectionInformation connectionInformation,
long timeElapsedNanos,
SQLException e)
onAfterRollback in class com.p6spy.engine.event.JdbcEventListenerpublic void onAfterConnectionClose(com.p6spy.engine.common.ConnectionInformation connectionInformation,
SQLException e)
onAfterConnectionClose in class com.p6spy.engine.event.JdbcEventListenerpublic int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2023 Pivotal Software, Inc.. All rights reserved.