|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.jdbc.StandardConnectionPoolManager
Standard implementation of the ConnectionPoolManager interface
ConnectionPoolManager,
ConnectionPool| Method Summary | |
void |
addPool(String poolName,
ConnectionPool pool)
Add a ConnectionPool to the Manager |
void |
close()
Close the ConnectionPoolManager NOTE: Once the manager is closed it cannot be restarted The close method will remove all ConnectionPools from any internal lists and will close them. |
ConnectionPoolManagerInfo |
getInfo()
Get information about the ConnectionPoolManager |
static ConnectionPoolManager |
getInstance()
Static accessor that gets the Singleton instance of the ConnectionPoolManager. |
ConnectionPool |
getPool(String poolName,
Properties info)
Get the ConnectionPool with the given poolName |
String[] |
getPoolNames()
Get all of the ConnectionPool names within the Manager |
ConnectionPool[] |
getPools()
Get all ConnectionPools within the Manager |
boolean |
poolExists(String poolName)
Determine if a ConnectionPool with the given name exists in the Manager |
ConnectionPool |
removePool(String poolName)
Remove a ConnectionPool from the Manager |
boolean |
setDebug(boolean enable)
Enable or disable debugging. |
void |
setLogger(Logger logger)
Sets the logger. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final ConnectionPoolManager getInstance()
public void setLogger(Logger logger)
setLogger in interface LoggerClientlogger - logs messagespublic boolean setDebug(boolean enable)
setDebug in interface Debuggableenable - if true, enable debugging, else disable debugging.
public ConnectionPoolManagerInfo getInfo()
getInfo in interface ConnectionPoolManager
public void addPool(String poolName,
ConnectionPool pool)
throws ConnectionPoolException
addPool in interface ConnectionPoolManagerpoolName - the name of the poolpool - the ConnectionPool object to add
ConnectionPoolException - thrown if a ConnectionPool is already registered
with the same namepublic ConnectionPool removePool(String poolName)
removePool in interface ConnectionPoolManagerpoolName - the name of the ConnectionPool to remove
public boolean poolExists(String poolName)
poolExists in interface ConnectionPoolManagerpoolName - the name of the ConnectionPool to check
public ConnectionPool[] getPools()
getPools in interface ConnectionPoolManagerpublic String[] getPoolNames()
getPoolNames in interface ConnectionPoolManager
public ConnectionPool getPool(String poolName,
Properties info)
throws ConnectionPoolException
getPool in interface ConnectionPoolManagerpoolName - the poolName of the ConnectionPool to getinfo - Properties object which may contain authentication material. If
authentication materials are included the two expected values
are "user" and "password"
ConnectionPoolException - thrown if authentication failspublic void close()
NOTE: Once the manager is closed it cannot be restarted
The close method will remove all ConnectionPools from any internal lists and will close them.
close in interface ConnectionPoolManager
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||