@RestController @RequestMapping(value="/jobs/instances") @ExposesResourceFor(value=JobInstanceResource.class) public class JobInstanceController extends Object
JobInstance.
This includes obtaining Job Instance information from the job service.| Constructor and Description |
|---|
JobInstanceController(TaskJobService taskJobService)
Creates a
JobInstanceController that retrieves Job Instance information. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.PagedResources<JobInstanceResource> |
list(String jobName,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<JobInstanceExecutions> assembler)
Return a page-able list of
JobInstanceResource defined jobs. |
JobInstanceResource |
view(long id)
View the details of a single task instance, specified by id.
|
@Autowired public JobInstanceController(TaskJobService taskJobService)
JobInstanceController that retrieves Job Instance information.taskJobService - the TaskJobService used for retrieving batch instance data.@RequestMapping(value="", method=GET, params="name") @ResponseStatus(value=OK) public org.springframework.hateoas.PagedResources<JobInstanceResource> list(@RequestParam(value="name") String jobName, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<JobInstanceExecutions> assembler) throws org.springframework.batch.core.launch.NoSuchJobException
JobInstanceResource defined jobs.pageable - page-able collection of JobInstances.assembler - for the JobInstancesorg.springframework.batch.core.launch.NoSuchJobException@RequestMapping(value="/{id}", method=GET) @ResponseStatus(value=OK) public JobInstanceResource view(@PathVariable(value="id") long id) throws org.springframework.batch.core.launch.NoSuchJobInstanceException, org.springframework.batch.core.launch.NoSuchJobException
id - the id of the requested JobInstanceJobInstanceorg.springframework.batch.core.launch.NoSuchJobInstanceExceptionorg.springframework.batch.core.launch.NoSuchJobExceptionCopyright © 2017 Pivotal Software, Inc.. All rights reserved.