public class ConnectionPoolManager extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
ConnectionPoolManager.ConnectionCloserThread |
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected ConnectionPoolManager.ConnectionCloserThread |
connectionCloserThread |
protected boolean |
debug |
protected Map<String,ConnectionPool> |
poolMap |
protected AtomicBoolean |
shuttingDown |
Constructor and Description |
---|
ConnectionPoolManager(int count,
boolean debug) |
Modifier and Type | Method and Description |
---|---|
ConnectionPool |
addAlias(String poolKey,
String driverClassName,
String dbURL,
String userName,
String password,
int maxSize,
long expiration)
Set up a pool with a given key.
|
protected void |
cleanupExpiredConnections(long cleanupTime) |
void |
flush() |
ConnectionPool |
getPool(String poolKey)
Look for a pool with a given key.
|
void |
shutdown() |
public static final String _rcsid
protected final Map<String,ConnectionPool> poolMap
protected final ConnectionPoolManager.ConnectionCloserThread connectionCloserThread
protected volatile AtomicBoolean shuttingDown
protected final boolean debug
public ConnectionPoolManager(int count, boolean debug) throws ManifoldCFException
ManifoldCFException
public ConnectionPool getPool(String poolKey)
public ConnectionPool addAlias(String poolKey, String driverClassName, String dbURL, String userName, String password, int maxSize, long expiration) throws ClassNotFoundException, InstantiationException, IllegalAccessException
public void flush()
public void shutdown()
protected void cleanupExpiredConnections(long cleanupTime)