|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.logicalcobwebs.proxool.HouseKeeperController
public class HouseKeeperController
Schedules when to run the house keeper
| Field Summary | |
|---|---|
private static int |
houseKeeperIndex
|
private static java.util.List |
houseKeeperList
|
private static java.util.Map |
houseKeepers
|
private static java.util.List |
houseKeeperThreads
|
private static java.lang.Object |
LOCK
|
private static Log |
LOG
|
| Constructor Summary | |
|---|---|
HouseKeeperController()
|
|
| Method Summary | |
|---|---|
protected static void |
cancel(java.lang.String alias)
cancel a house keeper for a pool. |
private static HouseKeeper |
getHouseKeeper(java.lang.String alias)
|
protected static HouseKeeper |
getHouseKeeperToRun()
Get the next house keeper that needs to be run |
protected static void |
register(ConnectionPool connectionPool)
Schedule a regular triggerSweep |
protected static void |
shutdown()
Stop all house keeper threads. |
protected static void |
sweepNow(java.lang.String alias)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Log LOG
private static java.util.Map houseKeepers
private static java.util.List houseKeeperList
private static int houseKeeperIndex
private static java.util.List houseKeeperThreads
private static final java.lang.Object LOCK
| Constructor Detail |
|---|
public HouseKeeperController()
| Method Detail |
|---|
private static HouseKeeper getHouseKeeper(java.lang.String alias)
throws ProxoolException
ProxoolExceptionprotected static HouseKeeper getHouseKeeperToRun()
protected static void sweepNow(java.lang.String alias)
protected static void register(ConnectionPool connectionPool)
connectionPool - identifies the poolprotected static void shutdown()
protected static void cancel(java.lang.String alias)
throws ProxoolException
alias - identifies the pool
ProxoolException - if we couldn't find the house keeper (if it had
already been cancelled for instance).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||