org.apache.ibatis.datasource.pooled
Class PoolState

java.lang.Object
  extended by org.apache.ibatis.datasource.pooled.PoolState

public class PoolState
extends Object


Field Summary
protected  long accumulatedCheckoutTime
           
protected  long accumulatedCheckoutTimeOfOverdueConnections
           
protected  long accumulatedRequestTime
           
protected  long accumulatedWaitTime
           
protected  List<org.apache.ibatis.datasource.pooled.PooledConnection> activeConnections
           
protected  long badConnectionCount
           
protected  long claimedOverdueConnectionCount
           
protected  PooledDataSource dataSource
           
protected  long hadToWaitCount
           
protected  List<org.apache.ibatis.datasource.pooled.PooledConnection> idleConnections
           
protected  long requestCount
           
 
Constructor Summary
PoolState(PooledDataSource dataSource)
           
 
Method Summary
 int getActiveConnectionCount()
           
 long getAverageCheckoutTime()
           
 long getAverageOverdueCheckoutTime()
           
 long getAverageRequestTime()
           
 long getAverageWaitTime()
           
 long getBadConnectionCount()
           
 long getClaimedOverdueConnectionCount()
           
 long getHadToWaitCount()
           
 int getIdleConnectionCount()
           
 long getRequestCount()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dataSource

protected PooledDataSource dataSource

idleConnections

protected final List<org.apache.ibatis.datasource.pooled.PooledConnection> idleConnections

activeConnections

protected final List<org.apache.ibatis.datasource.pooled.PooledConnection> activeConnections

requestCount

protected long requestCount

accumulatedRequestTime

protected long accumulatedRequestTime

accumulatedCheckoutTime

protected long accumulatedCheckoutTime

claimedOverdueConnectionCount

protected long claimedOverdueConnectionCount

accumulatedCheckoutTimeOfOverdueConnections

protected long accumulatedCheckoutTimeOfOverdueConnections

accumulatedWaitTime

protected long accumulatedWaitTime

hadToWaitCount

protected long hadToWaitCount

badConnectionCount

protected long badConnectionCount
Constructor Detail

PoolState

public PoolState(PooledDataSource dataSource)
Method Detail

getRequestCount

public long getRequestCount()

getAverageRequestTime

public long getAverageRequestTime()

getAverageWaitTime

public long getAverageWaitTime()

getHadToWaitCount

public long getHadToWaitCount()

getBadConnectionCount

public long getBadConnectionCount()

getClaimedOverdueConnectionCount

public long getClaimedOverdueConnectionCount()

getAverageOverdueCheckoutTime

public long getAverageOverdueCheckoutTime()

getAverageCheckoutTime

public long getAverageCheckoutTime()

getIdleConnectionCount

public int getIdleConnectionCount()

getActiveConnectionCount

public int getActiveConnectionCount()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.