org.mmbase.module.database
Class MultiPool

java.lang.Object
  |
  +--org.mmbase.module.database.MultiPool

public class MultiPool
extends java.lang.Object

JDBC Pool, a dummy interface to multiple real connection

Version:
$Id: MultiPool.java,v 1.20.2.5 2003/03/17 15:25:48 vpro Exp $
Author:
vpro

Method Summary
 void checkTime()
          Check the connections
protected  void finalize()
           
 java.util.Iterator getBusyPool()
           
 MultiConnection getFree()
          get a free connection from the pool
 java.util.Iterator getPool()
           
 int getSize()
          get the pool size
 int getTotalConnectionsCreated()
          get the number of statements performed
protected  void initConnection(java.sql.Connection conn)
           
 void putBack(MultiConnection con)
          putback the used connection in the pool
 void shutdown()
          'realcloses' all connections.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

shutdown

public void shutdown()
'realcloses' all connections.
Since:
MMBase-1.6.2

checkTime

public void checkTime()
Check the connections

getFree

public MultiConnection getFree()
get a free connection from the pool

putBack

public void putBack(MultiConnection con)
putback the used connection in the pool

getSize

public int getSize()
get the pool size

getTotalConnectionsCreated

public int getTotalConnectionsCreated()
get the number of statements performed

getPool

public java.util.Iterator getPool()

getBusyPool

public java.util.Iterator getBusyPool()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

initConnection

protected void initConnection(java.sql.Connection conn)


MMBase build 1.6.5.20030923