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:
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:
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:
Returns:

the id of the execution