@RestController @RequestMapping(value="/jobs/configurations") @ExposesResourceFor(value=DetailedJobInfoResource.class) public class BatchJobsController extends AbstractBatchJobsController
jobExecutionInfoResourceAssembler, jobInfoResourceAssembler, jobInstanceInfoResourceAssembler, jobService, progressInfoResourceAssembler, stepExecutionInfoResourceAssembler, timeZone, xdJobDefinitionRepository, xdJobrepository
Constructor and Description |
---|
BatchJobsController() |
Modifier and Type | Method and Description |
---|---|
DetailedJobInfoResource |
jobinfo(java.lang.String jobName) |
java.util.Collection<DetailedJobInfoResource> |
jobs(int startJob,
int pageSize)
Get a list of JobInfo, in a given range.
|
setTimeZone
@RequestMapping(value="", method=GET) @ResponseStatus(value=OK) public java.util.Collection<DetailedJobInfoResource> jobs(@RequestParam(defaultValue="0") int startJob, @RequestParam(defaultValue="20") int pageSize)
startJob
- the start index of the job names to returnpageSize
- page size for the list@RequestMapping(value="/{jobName}", method=GET) @ResponseStatus(value=OK) public DetailedJobInfoResource jobinfo(@PathVariable java.lang.String jobName)
jobName
- name of the job