|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.services.schedule.JobQueue
Queue for the scheduler.
Constructor Summary | |
JobQueue()
Creates a new instance. |
Method Summary | |
void |
add(JobEntry je)
Add a job to the queue. |
void |
batchLoad(java.util.List jobEntries)
Batch load jobs. |
JobEntry |
getJob(JobEntry je)
Return a specific job. |
JobEntry |
getNext()
Return the next job off the top of the queue, or null if
there are no jobs in the queue. |
java.util.Vector |
list()
List jobs in the queue. |
void |
modify(JobEntry je)
Modify a job on the queue. |
void |
remove(JobEntry je)
Remove a job from the queue. |
void |
updateQueue(JobEntry je)
Update the job for its next run time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JobQueue()
Method Detail |
public JobEntry getNext()
null
if
there are no jobs in the queue.
public JobEntry getJob(JobEntry je)
je
- The JobEntry we are looking for.
public java.util.Vector list()
JobEntry
objects.public void add(JobEntry je)
je
- A JobEntry job.public void batchLoad(java.util.List jobEntries)
SchedulerService
start-up.
jobEntries
- A list of the JobEntry
objects to load.public void remove(JobEntry je)
je
- A JobEntry with the job to remove.public void modify(JobEntry je) throws TurbineException
je
- A JobEntry with the job to modify
TurbineException
public void updateQueue(JobEntry je) throws TurbineException
je
- A JobEntry to be updated.
TurbineException
- a generic exception.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |