org.logicalcobwebs.proxool
Class PrototyperController

java.lang.Object
  extended by org.logicalcobwebs.proxool.PrototyperController

public class PrototyperController
extends java.lang.Object

Controls the prototypers

Since:
Proxool 0.8
Version:
$Revision: 1.9 $, $Date: 2004/04/05 22:54:57 $
Author:
bill, $Author: billhorsman $ (current maintainer)

Field Summary
private static boolean keepSweeping
           
private static java.lang.String LOCK
           
private static Log LOG
           
private static PrototyperThread prototyperThread
           
 
Constructor Summary
PrototyperController()
           
 
Method Summary
static boolean isKeepSweeping()
           
protected static void shutdown()
          Stop all house keeper threads
private static void startPrototyper()
           
static void sweepStarted()
           
protected static void triggerSweep(java.lang.String alias)
          Trigger prototyping immediately.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Log LOG

prototyperThread

private static PrototyperThread prototyperThread

keepSweeping

private static boolean keepSweeping

LOCK

private static final java.lang.String LOCK
See Also:
Constant Field Values
Constructor Detail

PrototyperController

public PrototyperController()
Method Detail

startPrototyper

private static void startPrototyper()

triggerSweep

protected static void triggerSweep(java.lang.String alias)
Trigger prototyping immediately. Runs inside a new Thread so control returns as quick as possible. You should call this whenever you suspect that building more connections might be a good idea.

Parameters:
alias -

isKeepSweeping

public static boolean isKeepSweeping()

sweepStarted

public static void sweepStarted()

shutdown

protected static void shutdown()
Stop all house keeper threads