org.apache.xalan.lib.sql
Class ConnectionPoolManager

java.lang.Object
  extended byorg.apache.xalan.lib.sql.ConnectionPoolManager

public class ConnectionPoolManager
extends Object


Field Summary
(package private) static boolean m_isInit
           
(package private) static Hashtable m_poolTable
           
 
Constructor Summary
ConnectionPoolManager()
           
 
Method Summary
 ConnectionPool getPool(String name)
          Return the connection pool referenced by the name
 void init()
          Initialize the internal structures of the Pool Manager
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_poolTable

static Hashtable m_poolTable

m_isInit

static boolean m_isInit
Constructor Detail

ConnectionPoolManager

public ConnectionPoolManager()
Method Detail

init

public void init()
Initialize the internal structures of the Pool Manager

Returns:

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.

Parameters:
name -
pool -
Returns:
Throws:
IllegalArgumentException, - throw this exception if a pool with the same name currently exists.

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 -
Returns:

getPool

public ConnectionPool getPool(String name)
Return the connection pool referenced by the name

Parameters:
name -
Returns: