Apache Tomcat 7.0.22

org.apache.tomcat.jdbc.pool.jmx
Interface ConnectionPoolMBean

All Superinterfaces:
PoolConfiguration
All Known Implementing Classes:
ConnectionPool, DataSource, XADataSource

public interface ConnectionPoolMBean
extends PoolConfiguration


Field Summary
 
Fields inherited from interface org.apache.tomcat.jdbc.pool.PoolConfiguration
PKG_PREFIX
 
Method Summary
 void checkAbandoned()
           
 void checkIdle()
           
 int getActive()
           
 int getIdle()
           
 int getNumActive()
           
 int getNumIdle()
           
 int getSize()
           
 int getWaitCount()
           
 boolean isPoolSweeperEnabled()
          Returns true if the pool sweeper is enabled for the connection pool.
 void testIdle()
           
 
Methods inherited from interface org.apache.tomcat.jdbc.pool.PoolConfiguration
getAbandonWhenPercentageFull, getConnectionProperties, getDataSource, getDataSourceJNDI, getDbProperties, getDefaultAutoCommit, getDefaultCatalog, getDefaultReadOnly, getDefaultTransactionIsolation, getDriverClassName, getInitialSize, getInitSQL, getJdbcInterceptors, getJdbcInterceptorsAsArray, getMaxActive, getMaxAge, getMaxIdle, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getName, getNumTestsPerEvictionRun, getPassword, getPoolName, getRemoveAbandonedTimeout, getSuspectTimeout, getTimeBetweenEvictionRunsMillis, getUrl, getUseLock, getUsername, getValidationInterval, getValidationQuery, getValidator, getValidatorClassName, isAccessToUnderlyingConnectionAllowed, isAlternateUsernameAllowed, isDefaultAutoCommit, isDefaultReadOnly, isFairQueue, isJmxEnabled, isLogAbandoned, isRemoveAbandoned, isTestOnBorrow, isTestOnConnect, isTestOnReturn, isTestWhileIdle, isUseEquals, setAbandonWhenPercentageFull, setAccessToUnderlyingConnectionAllowed, setAlternateUsernameAllowed, setConnectionProperties, setDataSource, setDataSourceJNDI, setDbProperties, setDefaultAutoCommit, setDefaultCatalog, setDefaultReadOnly, setDefaultTransactionIsolation, setDriverClassName, setFairQueue, setInitialSize, setInitSQL, setJdbcInterceptors, setJmxEnabled, setLogAbandoned, setMaxActive, setMaxAge, setMaxIdle, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setName, setNumTestsPerEvictionRun, setPassword, setRemoveAbandoned, setRemoveAbandonedTimeout, setSuspectTimeout, setTestOnBorrow, setTestOnConnect, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setUrl, setUseEquals, setUseLock, setUsername, setValidationInterval, setValidationQuery, setValidator, setValidatorClassName
 

Method Detail

getSize

int getSize()

getIdle

int getIdle()

getActive

int getActive()

isPoolSweeperEnabled

boolean isPoolSweeperEnabled()
Description copied from interface: PoolConfiguration
Returns true if the pool sweeper is enabled for the connection pool. The pool sweeper is enabled if any settings that require async intervention in the pool are turned on boolean result = getTimeBetweenEvictionRunsMillis()>0; result = result && (isRemoveAbandoned() && getRemoveAbandonedTimeout()>0); result = result || (isTestWhileIdle() && getValidationQuery()!=null); return result;

Specified by:
isPoolSweeperEnabled in interface PoolConfiguration
Returns:
true if a background thread is or will be enabled for this pool

getNumIdle

int getNumIdle()

getNumActive

int getNumActive()

getWaitCount

int getWaitCount()

checkIdle

void checkIdle()

checkAbandoned

void checkAbandoned()

testIdle

void testIdle()

Apache Tomcat 7.0.22

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.