|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManageableJobQueueInterface
An interface for a job queue class that allows external requests for adding jobs.
| Method Summary | |
|---|---|
void |
add(JobData jobData)
Add job to the queue. |
void |
addExecutionTime(Job.ExecutionTime executionTime)
Add an execution time to list of execution times automatically handled by the job queue class. |
boolean |
contains(JobData jobData)
Checks if the queue contains a job item. |
String |
getDescription()
Get the job queue class description string. |
List<Job.ExecutionTime> |
getExecutionTimeList()
Get the execution time list. |
String |
getId()
Get the job queue class id string. |
JobData |
getJob(int listIndex)
Get job specified by list index number in queue. |
JobData |
getNextJob()
Get next (first) job in queue, without modifying the queue. |
boolean |
isEmpty()
Checks if the queue is empty. |
JobData |
pollNextJob()
Retrieve next (first) job in queue and remove it from the queue. |
void |
remove(JobData jobData)
Remove job from the queue. |
void |
setDescription(String description)
Set the job queue class description string. |
void |
setId(String id)
Set the job queue class id string. |
int |
size()
Returns the size of the queue. |
void |
updateStatusForAbortedJobsInQueue()
Updates status for jobs in queue if they are listed to be aborted. |
| Methods inherited from interface org.proteios.core.AbortableJobQueueInterface |
|---|
addAbortedJobId, addPluginExecutionRequest, addThread, removeAbortedJobId, removePluginExecutionRequest, removeThread |
| Methods inherited from interface org.proteios.core.AbortableJobQueueReadOnlyInterface |
|---|
getAbortedJobIdList, getPluginExecutionRequest, getThread, isJobCommandAborted |
| Method Detail |
|---|
String getId()
getId in interface ManageableJobQueueReadOnlyInterfacevoid setId(String id)
id - String The job queue class id string.String getDescription()
getDescription in interface ManageableJobQueueReadOnlyInterfacevoid setDescription(String description)
description - String The job queue class description string.List<Job.ExecutionTime> getExecutionTimeList()
getExecutionTimeList in interface ManageableJobQueueReadOnlyInterfacevoid addExecutionTime(Job.ExecutionTime executionTime)
executionTime - ExecutionTime The execution time to add.boolean isEmpty()
isEmpty in interface ManageableJobQueueReadOnlyInterfaceint size()
size in interface ManageableJobQueueReadOnlyInterfaceboolean contains(JobData jobData)
contains in interface ManageableJobQueueReadOnlyInterfacejobData - JobData The job item to check for.
JobData getNextJob()
getNextJob in interface ManageableJobQueueReadOnlyInterfaceJobData pollNextJob()
JobData getJob(int listIndex)
getJob in interface ManageableJobQueueReadOnlyInterfacelistIndex - int Index number in list for job in queue.
void add(JobData jobData)
jobData - JobData The job to add to queue.void remove(JobData jobData)
jobData - JobData The job to remove from the queue.void updateStatusForAbortedJobsInQueue()
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||