|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.scheduler.AbstractScheduler
public abstract class AbstractScheduler
Service for a cron like scheduler.
| Nested Class Summary | |
|---|---|
protected class |
AbstractScheduler.MainLoop
Inner class. |
| Field Summary | |
|---|---|
protected AbstractScheduler.MainLoop |
mainLoop
The main loop for starting jobs. |
protected JobQueue |
scheduleQueue
The queue. |
protected java.lang.Thread |
thread
The thread used to process commands. |
| Fields inherited from interface org.apache.jetspeed.scheduler.Scheduler |
|---|
SERVICE_NAME |
| Constructor Summary | |
|---|---|
AbstractScheduler()
Creates a new instance. |
|
| Method Summary | |
|---|---|
abstract void |
addJob(JobEntry je)
Add a new job to the queue. |
abstract JobEntry |
getJob(int oid)
Get a specific Job from Storage. |
java.lang.Thread |
getThread()
Return the thread being used to process commands, or null if there is no such thread. |
java.util.List |
listJobs()
List jobs in the queue. |
abstract void |
removeJob(JobEntry je)
Remove a job from the queue. |
void |
restart()
Start (or restart) a thread to process commands, or wake up an existing thread if one is already running. |
void |
start()
|
void |
stop()
|
abstract void |
updateJob(JobEntry je)
Modify a Job. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JobQueue scheduleQueue
protected AbstractScheduler.MainLoop mainLoop
protected java.lang.Thread thread
| Constructor Detail |
|---|
public AbstractScheduler()
| Method Detail |
|---|
public void start()
public void stop()
public abstract JobEntry getJob(int oid)
throws java.lang.Exception
getJob in interface Scheduleroid - The int id for the job.
Exception, - a generic exception.
java.lang.Exception
public abstract void addJob(JobEntry je)
throws java.lang.Exception
addJob in interface Schedulerje - A JobEntry with the job to add.
Exception, - a generic exception.
java.lang.Exception
public abstract void removeJob(JobEntry je)
throws java.lang.Exception
removeJob in interface Schedulerje - A JobEntry with the job to remove.
Exception, - a generic exception.
java.lang.Exception
public abstract void updateJob(JobEntry je)
throws java.lang.Exception
updateJob in interface Schedulerje - A JobEntry with the job to modify
Exception, - a generic exception.
java.lang.Exceptionpublic java.util.List listJobs()
listJobs in interface Schedulerpublic java.lang.Thread getThread()
public void restart()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||