|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.dbpool.info.InfoCollectorBase
to.etc.dbpool.info.InfoCollectorExpenseBased
public class InfoCollectorExpenseBased
This collects per-statement execution time and collects statement counts.
Nested Class Summary | |
---|---|
static class |
InfoCollectorExpenseBased.StmtCount
|
Field Summary |
---|
Fields inherited from class to.etc.dbpool.info.InfoCollectorBase |
---|
m_executeDuration, 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 Summary | |
---|---|
InfoCollectorExpenseBased(java.lang.String ident,
java.lang.String queryString)
|
Method Summary | ||
---|---|---|
void |
addPerformanceCollector(IPerformanceCollector pc)
|
|
void |
connectionAllocated()
|
|
void |
executeBatchExecuted(StatementProxy sp,
long executeDuration,
int[] rc)
FIXME Needs explicit handling. |
|
void |
executeExecuted(StatementProxy sp,
long updateDuration,
java.lang.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. |
|
|
findCollector(java.lang.Class<T> clz)
Called when a statement execute has run. |
|
void |
finish()
Called when the collector is removed from the set. |
|
java.util.List<InfoCollectorExpenseBased.StmtCount> |
getCounters()
|
|
java.util.Map<java.lang.String,InfoCollectorExpenseBased.StmtCount> |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InfoCollectorExpenseBased(java.lang.String ident, java.lang.String queryString)
Method Detail |
---|
public void addPerformanceCollector(IPerformanceCollector pc)
public void finish()
finish
in interface IStatisticsListener
to.etc.dbpool.info.InfoCollector#finish()
public java.util.Map<java.lang.String,InfoCollectorExpenseBased.StmtCount> getStatementMap()
public java.util.List<InfoCollectorExpenseBased.StmtCount> getCounters()
public <T extends IPerformanceCollector> T findCollector(java.lang.Class<T> clz)
public void connectionAllocated()
connectionAllocated
in interface IStatisticsListener
to.etc.dbpool.info.InfoCollector#connectionAllocated()
public void statementPrepared(StatementProxy sp, long prepareDuration)
IStatisticsListener
statementPrepared
in interface IStatisticsListener
public void queryStatementExecuted(StatementProxy sp, long executeDuration, long fetchDuration, int rowCount, boolean prepared)
IStatisticsListener
queryStatementExecuted
in interface IStatisticsListener
public void executePreparedUpdateExecuted(StatementProxy sp, long updateDuration, int rowcount)
executePreparedUpdateExecuted
in interface IStatisticsListener
public void executeUpdateExecuted(StatementProxy sp, long updateDuration, int updatedrowcount)
IStatisticsListener
executeUpdateExecuted
in interface IStatisticsListener
public void executeExecuted(StatementProxy sp, long updateDuration, java.lang.Boolean result)
IStatisticsListener
executeExecuted
in interface IStatisticsListener
public void executeBatchExecuted(StatementProxy sp, long executeDuration, int[] rc)
executeBatchExecuted
in interface IStatisticsListener
IStatisticsListener.executeBatchExecuted(to.etc.dbpool.StatementProxy, long, int[])
public void reportSimple()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |