@RestController @RequestMapping(value="/batch/executions") @ExposesResourceFor(value=JobExecutionInfoResource.class) public class BatchJobExecutionsController extends AbstractBatchJobsController
jobExecutionInfoResourceAssembler, jobInfoResourceAssembler, jobInstanceInfoResourceAssembler, jobService, progressInfoResourceAssembler, stepExecutionInfoResourceAssembler, timeZone
Constructor and Description |
---|
BatchJobExecutionsController() |
Modifier and Type | Method and Description |
---|---|
JobExecutionInfoResource |
getJobExecutionInfo(long executionId) |
java.util.Collection<JobExecutionInfoResource> |
list(int startJobExecution,
int pageSize)
List all job executions in a given range.
|
void |
restartJobExecution(long jobExecutionId)
Restart the Job Execution with the given executionId.
|
void |
stopAll()
Stop all job executions.
|
void |
stopJobExecution(long jobExecutionId)
Stop Job Execution by the given executionId.
|
setTimeZone
@RequestMapping(value="", method=GET) @ResponseStatus(value=OK) public java.util.Collection<JobExecutionInfoResource> list(@RequestParam(defaultValue="0") int startJobExecution, @RequestParam(defaultValue="20") int pageSize)
startJobExecution
- index of the first job execution to getpageSize
- how many executions to return@RequestMapping(value="/{executionId}", method=GET) @ResponseStatus(value=OK) public JobExecutionInfoResource getJobExecutionInfo(@PathVariable long executionId)
executionId
- Id of the JobExecution
NoSuchJobExecutionException
- Thrown if the JobExecution
does not exist@RequestMapping(value="/{executionId}", method=PUT, params="stop=true") @ResponseStatus(value=OK) public void stopJobExecution(@PathVariable(value="executionId") long jobExecutionId)
jobExecutionId
- the executionId of the job execution to stop@RequestMapping(value="/{executionId}", method=PUT, params="restart=true") @ResponseStatus(value=OK) public void restartJobExecution(@PathVariable(value="executionId") long jobExecutionId)
jobExecutionId
- the executionId of the job execution to restart@RequestMapping(value="", method=PUT, params="stop=true") @ResponseStatus(value=OK) public void stopAll()