Last update: 2011-06-23

org.proteios.core
Interface AbortableJobQueueInterface

All Superinterfaces:
AbortableJobQueueReadOnlyInterface
All Known Subinterfaces:
ManageableJobQueueInterface

public interface AbortableJobQueueInterface
extends AbortableJobQueueReadOnlyInterface

An interface for a job queue class that allows abortion of jobs.

Author:
olle

Method Summary
 void addAbortedJobId(int jobId)
          Add job id to the aborted job id list.
 void addPluginExecutionRequest(int jobId, PluginExecutionRequest exec)
          Add PluginExecutionRequest entry for job specified by id.
 void addThread(int jobId, Thread thread)
          Add Thread entry for job specified by id.
 void removeAbortedJobId(int jobId)
          Remove job id from the aborted job id list.
 void removePluginExecutionRequest(int jobId)
          Remove PluginExecutionRequest entry for job specified by id.
 void removeThread(int jobId)
          Remove Thread entry for job specified by id.
 
Methods inherited from interface org.proteios.core.AbortableJobQueueReadOnlyInterface
getAbortedJobIdList, getPluginExecutionRequest, getThread, isJobCommandAborted
 

Method Detail

addAbortedJobId

void addAbortedJobId(int jobId)
Add job id to the aborted job id list.

Parameters:
jobId - int The job id to add to the aborted job id list.

removeAbortedJobId

void removeAbortedJobId(int jobId)
Remove job id from the aborted job id list.

Parameters:
jobId - int The job id to remove from the aborted job id list.

addPluginExecutionRequest

void addPluginExecutionRequest(int jobId,
                               PluginExecutionRequest exec)
Add PluginExecutionRequest entry for job specified by id.

Parameters:
jobId - The job id.
exec - The PluginExecutionRequest.

removePluginExecutionRequest

void removePluginExecutionRequest(int jobId)
Remove PluginExecutionRequest entry for job specified by id.

Parameters:
jobId - The job id.

addThread

void addThread(int jobId,
               Thread thread)
Add Thread entry for job specified by id.

Parameters:
jobId - The job id.
thread - The thread running the job.

removeThread

void removeThread(int jobId)
Remove Thread entry for job specified by id.

Parameters:
jobId - The job id.

Last update: 2011-06-23