org.fcrepo.server.storage
Interface ConnectionPoolManager

All Known Implementing Classes:
ConnectionPoolManagerImpl

public interface ConnectionPoolManager

Interface that defines a Module to facilitate the acquisition of JDBC connection pools for database access.

Author:
Ross Wayland

Method Summary
 ConnectionPool getPool()
          Gets the default Connection Pool.
 ConnectionPool getPool(String poolName)
          Gets the specified connection pool.
 

Method Detail

getPool

ConnectionPool getPool(String poolName)
                       throws ConnectionPoolNotFoundException
Gets the specified connection pool.

Parameters:
poolName - The name of the specified connection pool.
Returns:
The named connection pool.
Throws:
ConnectionPoolNotFoundException - If the specified connection pool cannot be found.

getPool

ConnectionPool getPool()
                       throws ConnectionPoolNotFoundException
Gets the default Connection Pool. Overrides getPool(String poolName) to return the default connection pool when no specific pool name is provided as an argument.

Returns:
The default connection pool.
Throws:
ConnectionPoolNotFoundException - If the default connection pool cannot be found.


Copyright © 2012 DuraSpace. All Rights Reserved.