org.mmbase.module.database
Class MultiPoolHandler

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

public class MultiPoolHandler
extends java.lang.Object


Constructor Summary
MultiPoolHandler(DatabaseSupport databasesupport, int maxConnections)
           
MultiPoolHandler(DatabaseSupport databasesupport, int maxConnections, int maxQuerys)
           
 
Method Summary
 void checkTime()
           
 MultiPool get(java.lang.String id)
           
 MultiConnection getConnection(java.lang.String url, java.lang.String name, java.lang.String password)
           
 int getMaxConnections()
           
 int getMaxQuerys()
           
 java.util.Set keySet()
           
 void setMaxConnections(int max)
           
 void setMaxQuerys(int max)
           
 void shutdown()
          Calls shutdown of all registered MultiPools
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPoolHandler

public MultiPoolHandler(DatabaseSupport databasesupport,
                        int maxConnections)

MultiPoolHandler

public MultiPoolHandler(DatabaseSupport databasesupport,
                        int maxConnections,
                        int maxQuerys)
Method Detail

getConnection

public MultiConnection getConnection(java.lang.String url,
                                     java.lang.String name,
                                     java.lang.String password)
                              throws java.sql.SQLException

shutdown

public void shutdown()
Calls shutdown of all registered MultiPools
Since:
MMBase-1.6.2

checkTime

public void checkTime()

keySet

public java.util.Set keySet()

get

public MultiPool get(java.lang.String id)

setMaxConnections

public void setMaxConnections(int max)

getMaxConnections

public int getMaxConnections()

setMaxQuerys

public void setMaxQuerys(int max)

getMaxQuerys

public int getMaxQuerys()


MMBase build 1.6.5.20030923