|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.dbcp.BasicDataSource
org.apache.commons.dbcp.managed.BasicManagedDataSource
org.nuiton.wikitty.jdbc.WikittyManagedDataSource
public class WikittyManagedDataSource
Extends BasicManagedDataSource to permit setWhenExhaustedAction configuration on GenericObjectPool internal field and change default action to Grow when exhausted
| Field Summary | |
|---|---|
protected int |
warnConnectionCount
nombre de connexions actives simultanement qui affiche un message lorsqu'un message est affiche ce nombre est multiplie par 2 pour le prochain message |
protected byte |
whenExhaustedAction
|
| Fields inherited from class org.apache.commons.dbcp.BasicDataSource |
|---|
closed, connectionInitSqls, connectionPool, connectionProperties, dataSource, defaultAutoCommit, defaultCatalog, defaultReadOnly, defaultTransactionIsolation, driverClassLoader, driverClassName, initialSize, logWriter, maxActive, maxIdle, maxOpenPreparedStatements, maxWait, minEvictableIdleTimeMillis, minIdle, numTestsPerEvictionRun, password, poolPreparedStatements, testOnBorrow, testOnReturn, testWhileIdle, timeBetweenEvictionRunsMillis, url, username, validationQuery, validationQueryTimeout |
| Constructor Summary | |
|---|---|
WikittyManagedDataSource()
|
|
| Method Summary | |
|---|---|
protected void |
createConnectionPool()
|
Connection |
getConnection()
|
byte |
getWhenExhaustedAction()
|
void |
setWhenExhaustedAction(byte whenExhaustedAction)
Change whenExhaustedAction of connectionPool |
| Methods inherited from class org.apache.commons.dbcp.managed.BasicManagedDataSource |
|---|
createConnectionFactory, createDataSourceInstance, createPoolableConnectionFactory, getTransactionManager, getTransactionRegistry, getXADataSource, getXaDataSourceInstance, setTransactionManager, setXADataSource, setXaDataSourceInstance |
| Methods inherited from class org.apache.commons.dbcp.BasicDataSource |
|---|
addConnectionProperty, close, createDataSource, getConnection, getConnectionInitSqls, getDefaultAutoCommit, getDefaultCatalog, getDefaultReadOnly, getDefaultTransactionIsolation, getDriverClassLoader, getDriverClassName, getInitialSize, getLogAbandoned, getLoginTimeout, getLogWriter, getMaxActive, getMaxIdle, getMaxOpenPreparedStatements, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getPassword, getRemoveAbandoned, getRemoveAbandonedTimeout, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getUrl, getUsername, getValidationQuery, getValidationQueryTimeout, isAccessToUnderlyingConnectionAllowed, isClosed, isPoolPreparedStatements, isWrapperFor, log, removeConnectionProperty, setAccessToUnderlyingConnectionAllowed, setConnectionInitSqls, setConnectionProperties, setDefaultAutoCommit, setDefaultCatalog, setDefaultReadOnly, setDefaultTransactionIsolation, setDriverClassLoader, setDriverClassName, setInitialSize, setLogAbandoned, setLoginTimeout, setLogWriter, setMaxActive, setMaxIdle, setMaxOpenPreparedStatements, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setPassword, setPoolPreparedStatements, setRemoveAbandoned, setRemoveAbandonedTimeout, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setUrl, setUsername, setValidationQuery, setValidationQueryTimeout, unwrap, validateConnectionFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int warnConnectionCount
protected byte whenExhaustedAction
| Constructor Detail |
|---|
public WikittyManagedDataSource()
| Method Detail |
|---|
public byte getWhenExhaustedAction()
GenericObjectPool.WHEN_EXHAUSTED_BLOCK,
GenericObjectPool.WHEN_EXHAUSTED_FAIL,
GenericObjectPool.WHEN_EXHAUSTED_GROWpublic void setWhenExhaustedAction(byte whenExhaustedAction)
whenExhaustedAction - GenericObjectPool.WHEN_EXHAUSTED_BLOCK,
GenericObjectPool.WHEN_EXHAUSTED_FAIL,
GenericObjectPool.WHEN_EXHAUSTED_GROWprotected void createConnectionPool()
createConnectionPool in class org.apache.commons.dbcp.BasicDataSource
public Connection getConnection()
throws SQLException
getConnection in interface DataSourcegetConnection in class org.apache.commons.dbcp.BasicDataSourceSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||