@RestController @RequestMapping(value="/jobs/instances") @ExposesResourceFor(value=JobInstanceInfoResource.class) public class BatchJobInstancesController extends AbstractBatchJobsController
jobExecutionInfoResourceAssembler, jobInfoResourceAssembler, jobInstanceInfoResourceAssembler, jobService, progressInfoResourceAssembler, stepExecutionInfoResourceAssembler, timeZone, xdJobDefinitionRepository, xdJobrepository
Constructor and Description |
---|
BatchJobInstancesController() |
Modifier and Type | Method and Description |
---|---|
JobInstanceInfoResource |
getJobInstance(long instanceId)
Return job instance info by the given instance id.
|
java.util.Collection<JobInstanceInfoResource> |
instancesForJob(java.lang.String jobName,
int startJobInstance,
int pageSize)
Return a paged collection of job instances for a given job.
|
setTimeZone
@RequestMapping(value="/{instanceId}", method=GET, produces="application/json") @ResponseStatus(value=OK) public JobInstanceInfoResource getJobInstance(@PathVariable long instanceId)
instanceId
- job instance id@RequestMapping(value="", method=GET, params="jobname", produces="application/json") @ResponseStatus(value=OK) public java.util.Collection<JobInstanceInfoResource> instancesForJob(@RequestParam(value="jobname") java.lang.String jobName, @RequestParam(defaultValue="0") int startJobInstance, @RequestParam(defaultValue="20") int pageSize)
jobName
- name of the batch jobstartJobInstance
- start index for the job instancepageSize
- page size for the list