|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
org.proteios.core.JobQueueScheduler
public final class JobQueueScheduler
This class schedules instances of job queue classes.
| Constructor Summary | |
|---|---|
protected |
JobQueueScheduler()
JobQueueScheduler default constructor. |
protected |
JobQueueScheduler(JobQueueManager jobQueueManagerToUse)
JobQueueScheduler constructor. |
| Method Summary | |
|---|---|
static JobQueueManager |
getJobQueueManager()
Get the job queue manager. |
static boolean |
isRunning()
Check if the job queue scheduler is running. |
void |
run()
Check the database for jobs that are waiting to be executed. |
protected void |
runNextJobInQueue(ManageableJobQueueReadOnlyInterface jobQueue)
|
static void |
setJobQueueManager(JobQueueManager jobQueueManagerToUse)
Set the job queue manager. |
protected void |
start()
Starts the job queue scheduler. |
protected void |
stop()
Stops the job queue scheduler. |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JobQueueScheduler()
protected JobQueueScheduler(JobQueueManager jobQueueManagerToUse)
jobQueueManagerToUse - The job queue manager to use.| Method Detail |
|---|
public static JobQueueManager getJobQueueManager()
public static void setJobQueueManager(JobQueueManager jobQueueManagerToUse)
jobQueueManagerToUse - The job queue manager to use.public static boolean isRunning()
start(),
stop()
protected void start()
throws BaseException
BaseException - If the job queue scheduler cannot be startedpublic void run()
run in interface Runnablerun in class TimerTaskprotected void runNextJobInQueue(ManageableJobQueueReadOnlyInterface jobQueue)
protected void stop()
throws BaseException
BaseException - If the job queue scheduler cannot be stopped.start(),
isRunning()
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||