org.globus.ogsa.utils
Class SweeperPool
java.lang.Object
org.globus.ogsa.utils.SweeperPool
- public class SweeperPool
- extends java.lang.Object
Pool of timers responsible for performing reoccuring sweep tasks.
It can be used in the same way as the java.util.Timer class,
with the only difference that the tasks added will be distributed in
a round-robin fashion among the available Timers. Each timer takes up one
background thread. The number of threads available in the default pool can
be configured using the 'sweeperThreads' global deployment descriptor
configuration property. The number of threads available in a pool can also be
specified when creating a new pool.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SweeperPool
public SweeperPool()
SweeperPool
public SweeperPool(int numThreads,
int interval)
getDefaultPool
public static SweeperPool getDefaultPool()
addTask
public void addTask(java.util.TimerTask task)
addTask
public void addTask(java.util.TimerTask task,
long delay,
long period)
addTask
public void addTask(java.util.TimerTask task,
long delay)
stopTimers
public void stopTimers()
startTimers
public void startTimers()
Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.