public class PooledOlapDataSource extends AbstractOlapDataSource implements CloseableDataSource
Constructor and Description |
---|
PooledOlapDataSource(OlapDataSource dataSource) |
PooledOlapDataSource(OlapDataSource dataSource,
GenericObjectPool.Config poolConfig) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected OlapConnection |
createConnection(String userName,
String password)
Note: Both 'userName' and 'password' are ignored.
|
protected com.eyeq.pivot4j.datasource.PooledOlapDataSource.PooledOlapConnectionFactory |
createConnectionFactory(OlapDataSource dataSource) |
protected GenericObjectPool<OlapConnection> |
createPool(PoolableObjectFactory<OlapConnection> factory,
GenericObjectPool.Config config) |
protected com.eyeq.pivot4j.datasource.PooledOlapDataSource.PooledOlapConnectionFactory |
getConnectionFactory() |
OlapDataSource |
getDataSource() |
int |
getMaxActive() |
int |
getMaxIdle() |
long |
getMaxWait() |
long |
getMinEvictableIdleTimeMillis() |
int |
getNumActive() |
int |
getNumIdle() |
int |
getNumTestsPerEvictionRun() |
protected GenericObjectPool<OlapConnection> |
getPool() |
long |
getTimeBetweenEvictionRunsMillis() |
byte |
getWhenExhaustedAction() |
boolean |
isTestOnBorrow() |
boolean |
isTestOnReturn() |
boolean |
isTestWhileIdle() |
getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, getPassword, getUserName, isWrapperFor, setLoginTimeout, setLogWriter, setPassword, setUserName, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnection, getConnection
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
isWrapperFor, unwrap
public PooledOlapDataSource(OlapDataSource dataSource)
dataSource
- public PooledOlapDataSource(OlapDataSource dataSource, GenericObjectPool.Config poolConfig)
dataSource
- poolConfig
- public OlapDataSource getDataSource()
public void close() throws SQLException
close
in interface CloseableDataSource
SQLException
CloseableDataSource.close()
protected com.eyeq.pivot4j.datasource.PooledOlapDataSource.PooledOlapConnectionFactory createConnectionFactory(OlapDataSource dataSource)
protected com.eyeq.pivot4j.datasource.PooledOlapDataSource.PooledOlapConnectionFactory getConnectionFactory()
protected GenericObjectPool<OlapConnection> createPool(PoolableObjectFactory<OlapConnection> factory, GenericObjectPool.Config config)
factory
- config
- protected GenericObjectPool<OlapConnection> getPool()
protected OlapConnection createConnection(String userName, String password) throws SQLException
createConnection
in class AbstractOlapDataSource
SQLException
AbstractOlapDataSource.createConnection(java.lang.String,
java.lang.String)
public int getNumActive()
public int getNumIdle()
public int getMaxIdle()
public int getMaxActive()
public long getMaxWait()
public byte getWhenExhaustedAction()
public boolean isTestOnBorrow()
public boolean isTestOnReturn()
public boolean isTestWhileIdle()
public long getTimeBetweenEvictionRunsMillis()
public int getNumTestsPerEvictionRun()
public long getMinEvictableIdleTimeMillis()
Copyright © 2012–2013 Eyeq MC. All rights reserved.