org.logicalcobwebs.proxool
Class HouseKeeperController
java.lang.Object
org.logicalcobwebs.proxool.HouseKeeperController
- public class HouseKeeperController
- extends java.lang.Object
Schedules when to run the house keeper
- Since:
- Proxool 0.8
- Version:
- $Revision: 1.3 $, $Date: 2003/03/10 23:43:10 $
- Author:
- bill, $Author: billhorsman $ (current maintainer)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Log LOG
houseKeepers
private static java.util.Map houseKeepers
houseKeeperList
private static java.util.List houseKeeperList
houseKeeperIndex
private static int houseKeeperIndex
houseKeeperThreads
private static java.util.List houseKeeperThreads
LOCK
private static final java.lang.Object LOCK
HouseKeeperController
public HouseKeeperController()
getHouseKeeper
private static HouseKeeper getHouseKeeper(java.lang.String alias)
throws ProxoolException
- Throws:
ProxoolException
getHouseKeeperToRun
protected static HouseKeeper getHouseKeeperToRun()
- Get the next house keeper that needs to be run
- Returns:
- the house keeper to run, or null if there is nothing to do.
sweepNow
protected static void sweepNow(java.lang.String alias)
register
protected static void register(ConnectionPool connectionPool)
- Schedule a regular triggerSweep
- Parameters:
connectionPool
- identifies the pool
cancel
protected static void cancel(java.lang.String alias)
throws ProxoolException
- Throws:
ProxoolException