org.jminor.common.db.pool
Interface ConnectionPoolStatistics


public interface ConnectionPoolStatistics

An interface encapsulating database connection pool statistics


Method Summary
 int getAvailable()
           
 long getAverageGetTime()
           
 int getCreated()
           
 long getCreationDate()
           
 int getDelayedRequests()
           
 int getDelayedRequestsPerSecond()
           
 int getDestroyed()
           
 int getFailedRequests()
           
 int getFailedRequestsPerSecond()
           
 List<ConnectionPoolState> getFineGrainedStatistics()
          Returns a list containing connection pool states spanning some interval, the order of items in the list is not guaranteed.
 int getInUse()
           
 long getMaximumCheckOutTime()
           
 long getMininumCheckOutTime()
           
 int getRequests()
           
 int getRequestsPerSecond()
           
 long getResetTime()
           
 int getSize()
           
 long getTimestamp()
           
 User getUser()
           
 

Method Detail

getUser

User getUser()
Returns:
the connection pool user

getFineGrainedStatistics

List<ConnectionPoolState> getFineGrainedStatistics()
Returns a list containing connection pool states spanning some interval, the order of items in the list is not guaranteed.

Returns:
fine grained list of pool states associated with this statistics object

getSize

int getSize()
Returns:
the number of connections being managed by the pool

getAvailable

int getAvailable()
Returns:
the number of available connections

getInUse

int getInUse()
Returns:
the number of connections in use

getTimestamp

long getTimestamp()
Returns:
the timestamp

getCreationDate

long getCreationDate()
Returns:
the time at which this statistics object was created

getCreated

int getCreated()
Returns:
the number of connections created by the pool

getDestroyed

int getDestroyed()
Returns:
the number of idle connections destroyed by the pool

getResetTime

long getResetTime()
Returns:
the last time stats were reset

getRequests

int getRequests()
Returns:
the number of connection requests since last reset

getRequestsPerSecond

int getRequestsPerSecond()
Returns:
the number of connection requests per second

getDelayedRequests

int getDelayedRequests()
Returns:
the number of delayed connection requests since last reset

getDelayedRequestsPerSecond

int getDelayedRequestsPerSecond()
Returns:
the number of delayed connection requests per second

getFailedRequests

int getFailedRequests()
Returns:
the number of failed connection requests since last reset

getFailedRequestsPerSecond

int getFailedRequestsPerSecond()
Returns:
the number of failed connection requests per second

getAverageGetTime

long getAverageGetTime()
Returns:
the avarage check out time in ms

getMininumCheckOutTime

long getMininumCheckOutTime()
Returns:
the minimum check out time in ms

getMaximumCheckOutTime

long getMaximumCheckOutTime()
Returns:
the maximum check out time in ms