|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.scheduler.JobQueue
public class JobQueue
Queue for the scheduler.
Field Summary | |
---|---|
private Vector |
queue
The queue of JobEntry objects. |
Constructor Summary | |
---|---|
JobQueue()
Creates a new instance. |
Method Summary | |
---|---|
void |
add(JobEntry je)
Add a job to the queue. |
void |
batchLoad(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. |
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. |
private void |
sortQueue()
Re-sort the existing 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 |
Field Detail |
---|
private Vector queue
JobEntry
objects.
Constructor Detail |
---|
public JobQueue() throws Exception
Exception
- A generic exception.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 Vector list()
JobEntry
objects.public void add(JobEntry je)
je
- A JobEntry job.public void batchLoad(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)
je
- A JobEntry with the job to modifypublic void updateQueue(JobEntry je) throws Exception
je
- A JobEntry to be updated.
Exception,
- a generic exception.
Exception
private void sortQueue()
synchronized
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |