Last update: 2011-06-23

org.proteios.core
Interface AbortableJobQueueReadOnlyInterface

All Known Subinterfaces:
AbortableJobQueueInterface, ManageableJobQueueInterface

public interface AbortableJobQueueReadOnlyInterface

An interface for a job queue class that allows abortion of jobs, restricted to methods that do not modify the job queue when called.

Author:
olle

Method Summary
 List<Integer> getAbortedJobIdList()
          Get the aborted job id list.
 PluginExecutionRequest getPluginExecutionRequest(int jobId)
          Get the PluginExecutionRequest for a job id.
 Thread getThread(int jobId)
          Get the thread for a job id.
 boolean isJobCommandAborted(int jobId)
          Check if a job id is in the aborted job id list.
 

Method Detail

getAbortedJobIdList

List<Integer> getAbortedJobIdList()
Get the aborted job id list.

Returns:
List The aborted job id list.

isJobCommandAborted

boolean isJobCommandAborted(int jobId)
Check if a job id is in the aborted job id list.

Parameters:
jobId - int The id for the job id to check abort status for.
Returns:
boolean True if the job id is in the aborted job id list, else false.

getPluginExecutionRequest

PluginExecutionRequest getPluginExecutionRequest(int jobId)
Get the PluginExecutionRequest for a job id.

Parameters:
jobId - int The id for the job id to get the PluginExecutionRequest for.
Returns:
PluginExecutionRequest The PluginExecutionRequest for the job.

getThread

Thread getThread(int jobId)
Get the thread for a job id. Returns null if the job is not executing.

Parameters:
jobId - int The id for the job to get the thread for.
Returns:
Thread The thread for the job.

Last update: 2011-06-23