public final class StatisticsCollector extends StatisticsCollectorBase implements IStatisticsListener
m_currentOpenConnections, m_executeDuration, m_maxConcurrentConnections, m_nConnectionAllocations, m_nErrors, m_nExecutes, m_nPreparedQueries, m_nPreparedUpdates, m_nPrepares, m_nRows, m_nStatementQueries, m_nStatementUpdates, m_nUpdatedRows, m_preparedQueryDuration, m_preparedUpdateDuration, m_prepareDuration, m_statementQueryDuration, m_statementUpdateDuration, m_totalFetchDuration| Constructor and Description |
|---|
StatisticsCollector(String ident,
String queryString,
boolean collectOraclePerformanceData) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionAllocated(ConnectionProxy proxy) |
void |
connectionClosed(ConnectionProxy proxy) |
void |
executeBatchExecuted(long executeDuration,
int totalStatements,
int totalRows,
List<BatchEntry> list) |
void |
executeExecuted(StatementProxy sp,
long updateDuration,
Boolean result)
Executed an "execute" command.
|
void |
executePreparedUpdateExecuted(StatementProxy sp,
long updateDuration,
int rowcount) |
void |
executeUpdateExecuted(StatementProxy sp,
long updateDuration,
int updatedrowcount)
An update statement has been executed.
|
void |
finish() |
List<StatementStatistics> |
getCounters() |
Map<String,StatementStatistics> |
getStatementMap() |
void |
queryStatementExecuted(StatementProxy sp,
long executeDuration,
long fetchDuration,
int rowCount,
boolean prepared)
A query statement was executed.
|
void |
reportSimple() |
void |
statementPrepared(StatementProxy sp,
long prepareDuration)
A statement was prepared or created.
|
getDuration, getExecuteDuration, getIdent, getMaxConcurrentConnections, getMetric, getMetrics, getNAnything, getNConnectionAllocations, getNErrors, getNExecutes, getNPreparedQueries, getNPreparedUpdates, getNPrepares, getNRows, getNStatementQueries, getNStatementUpdates, getNUpdatedRows, getPreparedQueryDuration, getPreparedUpdateDuration, getPrepareDuration, getStartTS, getStatementQueryDuration, getStatementUpdateDuration, getTotalDBRequests, getTotalDBTime, getTotalFetchDuration, getTotalQueries, getTotalUpdates, mergeMetricspublic void finish()
finish in interface IStatisticsListenerpublic Map<String,StatementStatistics> getStatementMap()
public List<StatementStatistics> getCounters()
public void connectionAllocated(ConnectionProxy proxy)
connectionAllocated in interface IStatisticsListenerpublic void connectionClosed(ConnectionProxy proxy)
connectionClosed in interface IStatisticsListenerpublic void statementPrepared(StatementProxy sp, long prepareDuration)
IStatisticsListenerstatementPrepared in interface IStatisticsListenerpublic void queryStatementExecuted(StatementProxy sp, long executeDuration, long fetchDuration, int rowCount, boolean prepared)
IStatisticsListenerqueryStatementExecuted in interface IStatisticsListenerpublic void executePreparedUpdateExecuted(StatementProxy sp, long updateDuration, int rowcount)
executePreparedUpdateExecuted in interface IStatisticsListenerpublic void executeUpdateExecuted(StatementProxy sp, long updateDuration, int updatedrowcount)
IStatisticsListenerexecuteUpdateExecuted in interface IStatisticsListenerpublic void executeExecuted(StatementProxy sp, long updateDuration, Boolean result)
IStatisticsListenerexecuteExecuted in interface IStatisticsListenerpublic void executeBatchExecuted(long executeDuration,
int totalStatements,
int totalRows,
List<BatchEntry> list)
executeBatchExecuted in interface IStatisticsListenerpublic void reportSimple()
Copyright © 2017 etc.to. All rights reserved.