to.etc.dbpool.info
Class InfoCollectorBase

java.lang.Object
  extended by to.etc.dbpool.info.InfoCollectorBase
Direct Known Subclasses:
InfoCollectorExpenseBased

public class InfoCollectorBase
extends java.lang.Object

Base class containing just count and overall time stuff.

Author:
Frits Jalvingh Created on Nov 4, 2010

Field Summary
protected  long m_executeDuration
           
protected  int m_nConnectionAllocations
          The #of times a connection was allocated during this request.
protected  int m_nErrors
           
protected  int m_nExecutes
           
protected  int m_nPreparedQueries
          #of queries issued using prepared statements.
protected  int m_nPreparedUpdates
          #of updates issued using prepared statements.
protected  int m_nPrepares
          The #of times a statement was PREPARED (preparedStatement)
protected  int m_nRows
          Number of rows retrieved,
protected  int m_nStatementQueries
          The #of statements passed
protected  int m_nStatementUpdates
          #of unprepared updates (using a statement).
protected  long m_nUpdatedRows
           
protected  long m_preparedQueryDuration
           
protected  long m_preparedUpdateDuration
           
protected  long m_prepareDuration
          The total time spent in preparing the statements above.
protected  long m_statementQueryDuration
           
protected  long m_statementUpdateDuration
           
protected  long m_totalFetchDuration
           
 
Constructor Summary
InfoCollectorBase(InfoCollectorBase o, long duration)
          Copy constructor.
InfoCollectorBase(java.lang.String ident)
           
 
Method Summary
 long getDuration()
           
 long getExecuteDuration()
           
 java.lang.String getIdent()
           
 int getNConnectionAllocations()
           
 int getNErrors()
           
 int getNExecutes()
           
 int getNPreparedQueries()
           
 int getNPreparedUpdates()
           
 int getNPrepares()
           
 int getNRows()
           
 int getNStatementQueries()
           
 int getNStatementUpdates()
           
 long getNUpdatedRows()
           
 long getPreparedQueryDuration()
           
 long getPreparedUpdateDuration()
           
 long getPrepareDuration()
           
 long getStartTS()
           
 long getStatementQueryDuration()
           
 long getStatementUpdateDuration()
           
 int getTotalDBRequests()
           
 long getTotalDBTime()
           
 long getTotalFetchDuration()
           
 int getTotalQueries()
           
 int getTotalUpdates()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_nConnectionAllocations

protected int m_nConnectionAllocations
The #of times a connection was allocated during this request.


m_nPrepares

protected int m_nPrepares
The #of times a statement was PREPARED (preparedStatement)


m_prepareDuration

protected long m_prepareDuration
The total time spent in preparing the statements above.


m_nPreparedQueries

protected int m_nPreparedQueries
#of queries issued using prepared statements.


m_nPreparedUpdates

protected int m_nPreparedUpdates
#of updates issued using prepared statements.


m_nStatementUpdates

protected int m_nStatementUpdates
#of unprepared updates (using a statement).


m_nUpdatedRows

protected long m_nUpdatedRows

m_preparedQueryDuration

protected long m_preparedQueryDuration

m_preparedUpdateDuration

protected long m_preparedUpdateDuration

m_statementQueryDuration

protected long m_statementQueryDuration

m_statementUpdateDuration

protected long m_statementUpdateDuration

m_nExecutes

protected int m_nExecutes

m_executeDuration

protected long m_executeDuration

m_nErrors

protected int m_nErrors

m_nRows

protected int m_nRows
Number of rows retrieved,


m_totalFetchDuration

protected long m_totalFetchDuration

m_nStatementQueries

protected int m_nStatementQueries
The #of statements passed

Constructor Detail

InfoCollectorBase

public InfoCollectorBase(java.lang.String ident)

InfoCollectorBase

public InfoCollectorBase(InfoCollectorBase o,
                         long duration)
Copy constructor.

Parameters:
o -
Method Detail

getNConnectionAllocations

public int getNConnectionAllocations()

getNPrepares

public int getNPrepares()

getPrepareDuration

public long getPrepareDuration()

getNPreparedQueries

public int getNPreparedQueries()

getNPreparedUpdates

public int getNPreparedUpdates()

getNStatementUpdates

public int getNStatementUpdates()

getNUpdatedRows

public long getNUpdatedRows()

getPreparedQueryDuration

public long getPreparedQueryDuration()

getPreparedUpdateDuration

public long getPreparedUpdateDuration()

getStatementQueryDuration

public long getStatementQueryDuration()

getStatementUpdateDuration

public long getStatementUpdateDuration()

getNExecutes

public int getNExecutes()

getExecuteDuration

public long getExecuteDuration()

getNErrors

public int getNErrors()

getNStatementQueries

public int getNStatementQueries()

getTotalQueries

public int getTotalQueries()

getTotalUpdates

public int getTotalUpdates()

getTotalDBRequests

public int getTotalDBRequests()

getTotalDBTime

public long getTotalDBTime()

getNRows

public int getNRows()

getTotalFetchDuration

public long getTotalFetchDuration()

getStartTS

public long getStartTS()

getDuration

public long getDuration()

getIdent

public java.lang.String getIdent()