Interface IExecutor
-
- All Known Implementing Classes:
BaseExecutor
public interface IExecutorExecution Module interface, defines an execution scheme
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancelJob(IJob job)Cancels the execution of a jobbooleancancelJob(IJobStatus jobStatus)Cancels the execution of a jobbooleandismissJob(IJob job)removes a finished job from the list of statusesbooleandismissJob(IJobStatus jobStatus)removes a finished job from the list of statusesjava.util.List<IJobStatus>getAllJobStatuses()Returns a list of all active, queued or recently finished job statusesIJobgetJob(IJobStatus jobStatus)Gets the job from a job statusIJobStatusgetJobStatus(IJob job)Gets the job status for a specific jobjava.util.List<IJob>getWaitingJobs()Returns a list of queued jobsvoidshutdown()shutsdown the executorbooleansubmitJob(IJob job)submits a job to this executor
-
-
-
Method Detail
-
getAllJobStatuses
java.util.List<IJobStatus> getAllJobStatuses()
Returns a list of all active, queued or recently finished job statuses- Returns:
- list of statuses
-
getWaitingJobs
java.util.List<IJob> getWaitingJobs()
Returns a list of queued jobs- Returns:
- list of jobs
-
getJobStatus
IJobStatus getJobStatus(IJob job)
Gets the job status for a specific job- Parameters:
job- job to get status of- Returns:
- status
-
getJob
IJob getJob(IJobStatus jobStatus)
Gets the job from a job status- Parameters:
jobStatus- job status instance- Returns:
- corresponding job
-
shutdown
void shutdown()
shutsdown the executor
-
submitJob
boolean submitJob(IJob job)
submits a job to this executor- Parameters:
job- job to submit- Returns:
- was successful?
-
dismissJob
boolean dismissJob(IJobStatus jobStatus)
removes a finished job from the list of statuses- Parameters:
jobStatus- status of finished job to remove from list- Returns:
- successful
-
dismissJob
boolean dismissJob(IJob job)
removes a finished job from the list of statuses- Parameters:
job- job instance of finished job to remove from list- Returns:
- successful
-
cancelJob
boolean cancelJob(IJobStatus jobStatus)
Cancels the execution of a job- Parameters:
jobStatus- job status of job to cancel- Returns:
- successful
-
cancelJob
boolean cancelJob(IJob job)
Cancels the execution of a job- Parameters:
job- job instance to cancel- Returns:
- successful
-
-