|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface that defines an Object that manages a collection of Object pools.
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 |
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 |
| Methods inherited from interface com.cafesoft.core.log.LoggerClient |
setLogger |
| Methods inherited from interface com.cafesoft.core.util.Debuggable |
setDebug |
| Method Detail |
public ConnectionPoolManagerInfo getInfo()
public void addPool(String poolName,
ConnectionPool pool)
throws ConnectionPoolException
poolName - 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)
poolName - the name of the ConnectionPool to remove
public ConnectionPool[] getPools()
public String[] getPoolNames()
public ConnectionPool getPool(String poolName,
Properties info)
throws ConnectionPoolException
poolName - 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 boolean poolExists(String poolName)
poolName - the name of the ConnectionPool to check
public 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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||