Package org.nuxeo.runtime.datasource
Class PooledDataSourceRegistry.ConfigurableManagedDataSource
- java.lang.Object
-
- org.apache.commons.dbcp2.BasicDataSource
-
- org.apache.commons.dbcp2.managed.BasicManagedDataSource
-
- org.nuxeo.runtime.datasource.PooledDataSourceRegistry.ConfigurableManagedDataSource
-
- All Implemented Interfaces:
AutoCloseable
,Wrapper
,MBeanRegistration
,CommonDataSource
,DataSource
,org.apache.commons.dbcp2.BasicDataSourceMXBean
- Enclosing class:
- PooledDataSourceRegistry
public static class PooledDataSourceRegistry.ConfigurableManagedDataSource extends org.apache.commons.dbcp2.managed.BasicManagedDataSource
ABasicManagedDataSource
that can configure its internalXADataSource
.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>
properties
-
Constructor Summary
Constructors Constructor Description ConfigurableManagedDataSource(Map<String,String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureXADataSource(XADataSource xaDataSource)
protected org.apache.commons.dbcp2.ConnectionFactory
createConnectionFactory()
-
Methods inherited from class org.apache.commons.dbcp2.managed.BasicManagedDataSource
createDataSourceInstance, createPoolableConnectionFactory, getTransactionManager, getTransactionRegistry, getTransactionSynchronizationRegistry, getXADataSource, getXaDataSourceInstance, setTransactionManager, setTransactionSynchronizationRegistry, setXADataSource, setXaDataSourceInstance
-
Methods inherited from class org.apache.commons.dbcp2.BasicDataSource
addConnectionProperty, close, createConnectionPool, createDataSource, createObjectPool, evict, getAbandonedLogWriter, getAbandonedUsageTracking, getAutoCommitOnReturn, getCacheState, getConnection, getConnection, getConnectionFactoryClassName, getConnectionInitSqls, getConnectionInitSqlsAsArray, getConnectionPool, getDefaultAutoCommit, getDefaultCatalog, getDefaultQueryTimeout, getDefaultReadOnly, getDefaultSchema, getDefaultTransactionIsolation, getDisconnectionSqlCodes, getDisconnectionSqlCodesAsArray, getDriver, getDriverClassLoader, getDriverClassName, getEnableAutoCommitOnReturn, getEvictionPolicyClassName, getFastFailValidation, getInitialSize, getJmxName, getLifo, getLogAbandoned, getLogExpiredConnections, getLoginTimeout, getLogWriter, getMaxConnLifetimeMillis, getMaxIdle, getMaxOpenPreparedStatements, getMaxTotal, getMaxWaitMillis, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getParentLogger, getPassword, getRegisteredJmxName, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, getRollbackOnReturn, getSoftMinEvictableIdleTimeMillis, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getUrl, getUsername, getValidationQuery, getValidationQueryTimeout, invalidateConnection, isAccessToUnderlyingConnectionAllowed, isClearStatementPoolOnReturn, isClosed, isPoolPreparedStatements, isWrapperFor, log, log, postDeregister, postRegister, preDeregister, preRegister, removeConnectionProperty, restart, setAbandonedLogWriter, setAbandonedUsageTracking, setAccessToUnderlyingConnectionAllowed, setAutoCommitOnReturn, setCacheState, setClearStatementPoolOnReturn, setConnectionFactoryClassName, setConnectionInitSqls, setConnectionProperties, setDefaultAutoCommit, setDefaultCatalog, setDefaultQueryTimeout, setDefaultReadOnly, setDefaultSchema, setDefaultTransactionIsolation, setDisconnectionSqlCodes, setDriver, setDriverClassLoader, setDriverClassName, setEnableAutoCommitOnReturn, setEvictionPolicyClassName, setFastFailValidation, setInitialSize, setJmxName, setLifo, setLogAbandoned, setLogExpiredConnections, setLoginTimeout, setLogWriter, setMaxConnLifetimeMillis, setMaxIdle, setMaxOpenPreparedStatements, setMaxTotal, setMaxWaitMillis, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setPassword, setPoolPreparedStatements, setRemoveAbandonedOnBorrow, setRemoveAbandonedOnMaintenance, setRemoveAbandonedTimeout, setRollbackOnReturn, setSoftMinEvictableIdleTimeMillis, setTestOnBorrow, setTestOnCreate, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setUrl, setUsername, setValidationQuery, setValidationQueryTimeout, start, startPoolMaintenance, unwrap, validateConnectionFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder
-
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
-
-
-
Method Detail
-
createConnectionFactory
protected org.apache.commons.dbcp2.ConnectionFactory createConnectionFactory() throws SQLException
- Overrides:
createConnectionFactory
in classorg.apache.commons.dbcp2.managed.BasicManagedDataSource
- Throws:
SQLException
-
configureXADataSource
protected void configureXADataSource(XADataSource xaDataSource)
-
-