@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  JobInstanceControllerthat retrieves Job Instance information. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.springframework.hateoas.PagedModel<JobInstanceResource> | list(String jobName,
    org.springframework.data.domain.Pageable pageable,
    org.springframework.data.web.PagedResourcesAssembler<JobInstanceExecutions> assembler)Return a page-able list of  JobInstanceResourcedefined 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.PagedModel<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.jobName - the name of the jobpageable - page-able collection of JobInstances.assembler - for the JobInstancesorg.springframework.batch.core.launch.NoSuchJobException - if the job for jobName specified does not exist.@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.NoSuchJobInstanceException - if job instance for the id does not exist.org.springframework.batch.core.launch.NoSuchJobException - if the job for the job instance does not exist.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.