|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.Parameterized
org.fcrepo.server.Pluggable
org.fcrepo.server.Module
org.fcrepo.server.storage.ConnectionPoolManagerImpl
public class ConnectionPoolManagerImpl
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ConnectionPoolManagerImpl(Map<String,String> moduleParameters,
Server server,
String role)
Constructs a new ConnectionPoolManagerImpl |
|
| Method Summary | |
|---|---|
ConnectionPool |
getPool()
Gets the default Connection Pool. |
ConnectionPool |
getPool(String poolName)
Gets a named connection pool. |
void |
initModule()
Initializes the Module based on configuration parameters. |
void |
shutdownModule()
Closes all connection pools. |
| Methods inherited from class org.fcrepo.server.Module |
|---|
getRole, getServer, postInitModule |
| Methods inherited from class org.fcrepo.server.Pluggable |
|---|
getHelp, getOptionalParameters, getParameterHelp, getRequiredModuleRoles, getRequiredParameters |
| Methods inherited from class org.fcrepo.server.Parameterized |
|---|
getParameter, getParameter, getParameter, getParameterList, getParameters, getParameters, parameterNames, setParameter, setParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionPoolManagerImpl(Map<String,String> moduleParameters,
Server server,
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
org.fcrepo.server.storage.ConnectionPoolManager.
initModule in class ModuleModuleInitializationException - If initialization values are invalid or initialization fails for
some other reason.
public ConnectionPool getPool(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.
public void shutdownModule()
throws ModuleShutdownException
Closes all connection pools. This method overrides
shutdownModule() .
shutdownModule in class ModuleModuleShutdownException - If the close operation for the connection pool(s) fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||