|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfedora.server.Parameterized
fedora.server.Pluggable
fedora.server.Module
fedora.server.storage.ConnectionPoolManagerImpl
Title: ConnectionPoolManagerImpl.java
Description: Implements ConnectionPoolManager to facilitate obtaining
database connection pools. This class initializes the connection pools
specified by parameters in the Fedora fedora.fcfg configuration
file. The Fedora server must be instantiated in order for this class to
function properly.
| Constructor Summary | |
ConnectionPoolManagerImpl(java.util.Map moduleParameters,
Server server,
java.lang.String role)
Constructs a new ConnectionPoolManagerImpl |
|
| Method Summary | |
ConnectionPool |
getPool()
Gets the default Connection Pool. |
ConnectionPool |
getPool(java.lang.String poolName)
Gets a named connection pool. |
void |
initModule()
Initializes the Module based on configuration parameters. |
| Methods inherited from class fedora.server.Module |
getRole, getServer, logConfig, logFine, logFiner, logFinest, loggingConfig, loggingFine, loggingFiner, loggingFinest, loggingInfo, loggingSevere, loggingWarning, logInfo, logSevere, logWarning, postInitModule, shutdownModule |
| Methods inherited from class fedora.server.Pluggable |
getHelp, getOptionalParameters, getParameterHelp, getRequiredModuleRoles, getRequiredParameters |
| Methods inherited from class fedora.server.Parameterized |
getParameter, getParameters, parameterNames, setParameter, setParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionPoolManagerImpl(java.util.Map moduleParameters,
Server server,
java.lang.String role)
throws ModuleInitializationException
Constructs a new ConnectionPoolManagerImpl
moduleParameters - The name/value pair map of module parameters.server - The server instance.role - The module role name.
ModuleInitializationException - If initialization values are
invalid or initialization fails for some other reason.| Method Detail |
public void initModule()
throws ModuleInitializationException
fedora.server.storage.ConnectionPoolManager.
initModule in class ModuleModuleInitializationException - If initialization values are
invalid or initialization fails for some other reason.
public ConnectionPool getPool(java.lang.String poolName)
throws ConnectionPoolNotFoundException
Gets a named connection pool.
getPool in interface ConnectionPoolManagerpoolName - The name of the connection pool.
ConnectionPoolNotFoundException - If the specified connection pool
cannot be found.
public ConnectionPool getPool()
throws ConnectionPoolNotFoundException
Gets the default Connection Pool. This method overrides
getPool(String poolName).
getPool in interface ConnectionPoolManagerConnectionPoolNotFoundException - If the default connection pool
cannot be found.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||