JobTriggerService¶
-
public interface
JobTriggerService
¶ Interface to perform the trigger operation for all types of jobs.
Author: Naveen
Methods¶
getJobExecutionHistory¶
-
JobExecutionHistoryListDTO
getJobExecutionHistory
(String jobName)¶ Returns the execution history for a job.
Parameters: - jobName – name of the job to query for history
Throws: - BatchException – if history retrieval failed
Returns: the history of executions for this job
restart¶
-
long
restart
(String jobName, Integer executionId)¶ Restarts the execution of a batch job.
Parameters: - jobName – the name of batch job
- executionId – the id of the execution to restart
Throws: - BatchException – if restarting the job failed
Returns: the id of the execution
triggerJob¶
-
long
triggerJob
(String jobName)¶ Trigger a job instantly.
Parameters: - jobName – name of the job to be triggered
Throws: - BatchException – if triggering the job failed
Returns: the id of the execution