@RestController @RequestMapping(value="/batch/instances") @ExposesResourceFor(value=org.springframework.batch.admin.domain.JobInstanceInfoResource.class) public class BatchJobInstancesController extends AbstractBatchJobsController
jobExecutionInfoResourceAssembler, jobInfoResourceAssembler, jobInstanceInfoResourceAssembler, jobService, progressInfoResourceAssembler, stepExecutionInfoResourceAssembler, timeZone| Constructor and Description |
|---|
BatchJobInstancesController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.admin.domain.JobInstanceInfoResource |
getJobInstance(long instanceId)
Return job instance info by the given instance id.
|
Collection<org.springframework.batch.admin.domain.JobInstanceInfoResource> |
instancesForJob(String jobName,
int startJobInstance,
int pageSize)
Return a paged collection of job instances for a given job.
|
setTimeZone@RequestMapping(value="/{instanceId}",
method=GET)
@ResponseStatus(value=OK)
public org.springframework.batch.admin.domain.JobInstanceInfoResource getJobInstance(@PathVariable
long instanceId)
instanceId - job instance id@RequestMapping(value="",
method=GET,
params="jobname")
@ResponseStatus(value=OK)
public Collection<org.springframework.batch.admin.domain.JobInstanceInfoResource> instancesForJob(@RequestParam(value="jobname")
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 listCopyright © 2015. All rights reserved.