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


Method Summary
 java.util.Enumeration busyelements()
           
 void checkTime()
          Check the connections
 java.util.Enumeration elements()
           
 MultiConnection getFree()
          get a free connection from the pool
 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
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

elements

public java.util.Enumeration elements()

busyelements

public java.util.Enumeration busyelements()

toString

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

initConnection

protected void initConnection(java.sql.Connection conn)


MMBase 2001