|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.task.PersistentScheduler
TaskManager
This Scheduler executes from a collection of persistent tasks described in its database. Tasks are added to the database as follows: (new PersistentScheduler()).schedule(task); The PersistentScheduler can be started via this class' main(). It will read the database for all current tasks, find those due to be executed, and execute them.
| Field Summary | |
static int |
COMPLAIN_AFTER_SLEEPING_TIMES
Deprecated. if main() has slept this number of times waiting for a task to finish, complain on even multiples. |
static int |
GIVE_UP_AFTER_SLEEPING_TIMES
Deprecated. if main() is still sleeping after this number of iterations, waiting on a threaded task to complete, it'll give up. |
static long |
SLEEP_INTERVAL
Deprecated. msec for main() method to sleep if live tasks still exist. |
| Constructor Summary | |
PersistentScheduler()
Deprecated. |
|
| Method Summary | |
static void |
main(String[] args)
Deprecated. Retrieve current tasks and execute them. |
void |
printHelp()
Deprecated. Print help text. |
Vector |
run(String[] schedulerNames)
Deprecated. Verify conditions will let me run. |
void |
schedule(Task task)
Deprecated. Accept a Task and add it to my database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long SLEEP_INTERVAL
public static final int COMPLAIN_AFTER_SLEEPING_TIMES
public static int GIVE_UP_AFTER_SLEEPING_TIMES
| Constructor Detail |
public PersistentScheduler()
| Method Detail |
public static void main(String[] args)
public void schedule(Task task)
throws SQLException,
IllegalArgumentException
public Vector run(String[] schedulerNames)
schedulerNames - array of scheduler names to run for.public void printHelp()
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||