| java.lang.Object org.mmbase.module.database.MultiPool
MultiPool | public class MultiPool (Code) | | JDBC Pool, a dummy interface to multiple real connection
author: vpro version: $Id: MultiPool.java,v 1.61 2007/12/06 08:05:51 michiel Exp $ |
Inner Class :static class ConnectionCloser implements Runnable | |
checkTime | void checkTime()(Code) | | Check the connections
|
createPool | protected void createPool()(Code) | | Fills the connection pool
since: MMBase-1.7 |
fillPool | protected boolean fillPool(boolean logStack)(Code) | | Fills the connection pool.
true if the pool contains connections and mmbase can be started. since: MMBase-1.7 |
finalize | protected void finalize()(Code) | | |
getMaxLifeTime | long getMaxLifeTime()(Code) | | Gets the time in ms how long a query may live before it is killed.
since: MMBase-1.8 |
getMultiConnection | protected MultiConnection getMultiConnection() throws SQLException(Code) | | Request a new 'real' Connection and wraps it in a new 'MultiConnection' object.
since: MMBase-1.7 |
getSize | public int getSize()(Code) | | get the pool size
|
getTotalConnectionsCreated | public int getTotalConnectionsCreated()(Code) | | get the number of statements performed
|
replaceConnection | protected void replaceConnection(MultiConnection multiCon) throws SQLException(Code) | | Tries to fix this multi-connection if it is broken (e.g. if database restarted).
since: MMBase-1.7.1 |
setMaxLifeTime | void setMaxLifeTime(long maxLifeTime)(Code) | | Set the time in ms how long a query may live before it is killed.
since: MMBase-1.8 |
shutdown | public void shutdown()(Code) | | 'realcloses' all connections.
since: MMBase-1.6.2 |
|
|