org.apache.xalan.lib.sql

Class ConnectionPoolManager


public class ConnectionPoolManager
extends java.lang.Object

Constructor Summary

ConnectionPoolManager()

Method Summary

ConnectionPool
getPool(String name)
Return the connection pool referenced by the name
void
registerPool(String name, ConnectionPool pool)
Register a nuew connection pool to the global pool table.
void
removePool(String name)
Remove a pool from the global table.

Constructor Details

ConnectionPoolManager

public ConnectionPoolManager()

Method Details

getPool

public ConnectionPool getPool(String name)
Return the connection pool referenced by the name
Parameters:
name -
Returns:
ConnectionPool a reference to the ConnectionPool object stored in the Pool Table. If the named pool does not exist, return null

registerPool

public void registerPool(String name,
                         ConnectionPool pool)
Register a nuew connection pool to the global pool table. If a pool by that name currently exists, then throw an IllegalArgumentException stating that the pool already exist. org.apache.xalan.lib.sql.ConnectionPool}
Parameters:
name -
pool -

removePool

public void removePool(String name)
Remove a pool from the global table. If the pool still has active connections, then only mark this pool as inactive and leave it around until all the existing connections are closed.
Parameters:
name -

Copyright B) 2005 Apache XML Project. All Rights Reserved.