Top Fields Methods
org.apache.tomcat.jdbc.pool.jmx

public Interface ConnectionPoolMBean

extends PoolConfiguration
Known Direct Implementers
org.apache.tomcat.jdbc.pool.DataSource, org.apache.tomcat.jdbc.pool.jmx.ConnectionPool
Imports
org.apache.tomcat.jdbc.pool.PoolConfiguration

Field Summary

Inherited from org.apache.tomcat.jdbc.pool.PoolConfiguration:
PKG_PREFIX

Method Summary

Modifier and TypeMethod and Description
public void
public void
public int
public long
public long
public int
public int
public int
public long
public long
public long
public long
public long
public int
public int
public void
purge()

Purges all connections in the pool.

public void
purgeOnReturn()

Purges connections when they are returned from the pool.

public void
resetStats()

reset the statistics of this pool.

public void
Inherited from org.apache.tomcat.jdbc.pool.PoolConfiguration:
getAbandonWhenPercentageFullgetCommitOnReturngetConnectionPropertiesgetDataSourcegetDataSourceJNDIgetDbPropertiesgetDefaultAutoCommitgetDefaultCataloggetDefaultReadOnlygetDefaultTransactionIsolationgetDriverClassNamegetInitialSizegetInitSQLgetJdbcInterceptorsgetJdbcInterceptorsAsArraygetLogValidationErrorsgetMaxActivegetMaxAgegetMaxIdlegetMaxWaitgetMinEvictableIdleTimeMillisgetMinIdlegetNamegetNumTestsPerEvictionRungetPasswordgetPoolNamegetPropagateInterruptStategetRemoveAbandonedTimeoutgetRollbackOnReturngetSuspectTimeoutgetTimeBetweenEvictionRunsMillisgetUrlgetUseDisposableConnectionFacadegetUseLockgetUsernamegetUseStatementFacadegetValidationIntervalgetValidationQuerygetValidationQueryTimeoutgetValidatorgetValidatorClassNameisAccessToUnderlyingConnectionAllowedisAlternateUsernameAllowedisDefaultAutoCommitisDefaultReadOnlyisFairQueueisIgnoreExceptionOnPreLoadisJmxEnabledisLogAbandonedisPoolSweeperEnabledisRemoveAbandonedisTestOnBorrowisTestOnConnectisTestOnReturnisTestWhileIdleisUseEqualssetAbandonWhenPercentageFullsetAccessToUnderlyingConnectionAllowedsetAlternateUsernameAllowedsetCommitOnReturnsetConnectionPropertiessetDataSourcesetDataSourceJNDIsetDbPropertiessetDefaultAutoCommitsetDefaultCatalogsetDefaultReadOnlysetDefaultTransactionIsolationsetDriverClassNamesetFairQueuesetIgnoreExceptionOnPreLoadsetInitialSizesetInitSQLsetJdbcInterceptorssetJmxEnabledsetLogAbandonedsetLogValidationErrorssetMaxActivesetMaxAgesetMaxIdlesetMaxWaitsetMinEvictableIdleTimeMillissetMinIdlesetNamesetNumTestsPerEvictionRunsetPasswordsetPropagateInterruptStatesetRemoveAbandonedsetRemoveAbandonedTimeoutsetRollbackOnReturnsetSuspectTimeoutsetTestOnBorrowsetTestOnConnectsetTestOnReturnsetTestWhileIdlesetTimeBetweenEvictionRunsMillissetUrlsetUseDisposableConnectionFacadesetUseEqualssetUseLocksetUsernamesetUseStatementFacadesetValidationIntervalsetValidationQuerysetValidationQueryTimeoutsetValidatorsetValidatorClassName

Method Detail

checkAbandonedback to summary
public void checkAbandoned()
checkIdleback to summary
public void checkIdle()
getActiveback to summary
public int getActive()
getBorrowedCountback to summary
public long getBorrowedCount()
getCreatedCountback to summary
public long getCreatedCount()
getIdleback to summary
public int getIdle()
getNumActiveback to summary
public int getNumActive()
getNumIdleback to summary
public int getNumIdle()
getReconnectedCountback to summary
public long getReconnectedCount()
getReleasedCountback to summary
public long getReleasedCount()
getReleasedIdleCountback to summary
public long getReleasedIdleCount()
getRemoveAbandonedCountback to summary
public long getRemoveAbandonedCount()
getReturnedCountback to summary
public long getReturnedCount()
getSizeback to summary
public int getSize()
getWaitCountback to summary
public int getWaitCount()
purgeback to summary
public void purge()

Purges all connections in the pool. For connections currently in use, these connections will be purged when returned on the pool. This call also purges connections that are idle and in the pool To only purge used/active connections see purgeOnReturn()

purgeOnReturnback to summary
public void purgeOnReturn()

Purges connections when they are returned from the pool. This call does not purge idle connections until they are used. To purge idle connections see purge()

resetStatsback to summary
public void resetStats()

reset the statistics of this pool.

testIdleback to summary
public void testIdle()