to.etc.dbpool
Class PoolStats

java.lang.Object
  extended by to.etc.dbpool.PoolStats

public final class PoolStats
extends java.lang.Object

PIT copy of pool statistics.

Author:
Frits Jalvingh Created on Nov 2, 2010

Method Summary
 int getConnectionWaitCount()
           
 java.util.List<ConnectionProxy> getCurrentlyHangingConnections()
           
 int getExpiredDisconnects()
          Returns the #of times a connection was closed by the Janitor because it was allocated for way too long.
 long getN_rows()
           
 int getPooledAllocated()
          The current #of connections allocated for the POOL.
 int getPooledMaxUsed()
           
 int getPooledUsed()
           
 int getPoolFailureCount()
           
 long getResultsetOpenCount()
           
 int getStatementOpenCount()
           
 int getStatementPeakCount()
           
 long getStatementTotalPrepareCount()
           
 int getTotalAllocations()
          Returns the #of times that a connection was allocated from the pool (i.e.
 int getTotalDatabaseAllocations()
           
 int getUnpooledAllocated()
          The current #of allocated and used unpooled connections.
 int getUnpooledMaxAllocated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTotalDatabaseAllocations

public int getTotalDatabaseAllocations()

getUnpooledAllocated

public int getUnpooledAllocated()
The current #of allocated and used unpooled connections.

Returns:

getUnpooledMaxAllocated

public int getUnpooledMaxAllocated()

getPooledAllocated

public int getPooledAllocated()
The current #of connections allocated for the POOL. This does NOT include the unpooled connections. The total #of connections used by the pool is the sum of this variable plus getUsedUnpooled().

Returns:

getPooledUsed

public int getPooledUsed()

getPooledMaxUsed

public int getPooledMaxUsed()

getTotalAllocations

public int getTotalAllocations()
Returns the #of times that a connection was allocated from the pool (i.e. the #of calls to getConnection()).

Returns:

getConnectionWaitCount

public int getConnectionWaitCount()

getPoolFailureCount

public int getPoolFailureCount()

getExpiredDisconnects

public int getExpiredDisconnects()
Returns the #of times a connection was closed by the Janitor because it was allocated for way too long.

Returns:

getStatementOpenCount

public int getStatementOpenCount()

getStatementPeakCount

public int getStatementPeakCount()

getResultsetOpenCount

public long getResultsetOpenCount()

getStatementTotalPrepareCount

public long getStatementTotalPrepareCount()

getN_rows

public long getN_rows()

getCurrentlyHangingConnections

public java.util.List<ConnectionProxy> getCurrentlyHangingConnections()