| |
|
| java.lang.Object java.lang.Thread com.knowgate.scheduler.SchedulerDaemon
SchedulerDaemon | public class SchedulerDaemon extends Thread (Code) | | Scheduler daemon
Keeps a thread pool and an atom queue for feeding the pool.
author: Sergio Montoro Ten version: 3.0 |
creationDate | public Date creationDate()(Code) | | Get date when this SchedulerDaemon was created
Date |
haltAll | public void haltAll() throws IllegalStateException(Code) | | Halt worker threads and set running jobs status to suspended
Wait until all running atoms are finished and then stop all worker threads
throws: IllegalStateException - If worker threads are not running |
run | public void run()(Code) | | Create AtomQueue and start WorkerThreadPool
|
startDate | public Date startDate()(Code) | | Get date when this SchedulerDaemon was started for the last time
Date |
stopAll | public synchronized void stopAll(long lDelayMilis) throws IllegalStateException, SQLException(Code) | | Stop worker threads and set running jobs status to interrupted
Call haltAll() Wait until the specified amount of miliseconds
and force all worker threads still alive to stop.
This method must only be used when stalled worker threads cannot be stopped
by calling haltAll().
Parameters: lDelayMilis - long Delay (in miliseconds) to wait before executingthreads are forced to stop throws: IllegalStateException - If worker threads are not running |
stopDate | public Date stopDate()(Code) | | Get date when this SchedulerDaemon was stopped for the last time
Date |
unregisterCallback | public void unregisterCallback(String sCallbackName)(Code) | | |
|
|
|