@RestController @RequestMapping(value="/jobs/thinexecutions") @ExposesResourceFor(value=JobExecutionThinResource.class) public class JobExecutionThinController extends Object
JobExecutions where the step executions are
not included in the results that are returned.| Constructor and Description |
|---|
JobExecutionThinController(TaskJobService taskJobService)
Creates a
JobExecutionThinController that retrieves Job Execution information
from a the JobService |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.PagedResources<JobExecutionThinResource> |
listJobsOnly(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler)
Return a page-able list of
JobExecutionThinResource defined jobs that
do not contain step execution detail. |
org.springframework.hateoas.PagedResources<JobExecutionThinResource> |
retrieveJobsByName(String jobName,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler)
Retrieve all task job executions with the task name specified
|
@Autowired public JobExecutionThinController(TaskJobService taskJobService)
JobExecutionThinController that retrieves Job Execution information
from a the JobServicetaskJobService - the service this controller will use for retrieving job
execution information. Must not be null.@RequestMapping(value="",
method=GET,
produces="application/json")
@ResponseStatus(value=OK)
public org.springframework.hateoas.PagedResources<JobExecutionThinResource> listJobsOnly(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler)
throws org.springframework.batch.core.launch.NoSuchJobExecutionException
JobExecutionThinResource defined jobs that
do not contain step execution detail.pageable - page-able collection of TaskJobExecutions.assembler - for the TaskJobExecutionsorg.springframework.batch.core.launch.NoSuchJobExecutionException - in the event that a job execution id specified
is not present when looking up stepExecutions for the result.@RequestMapping(value="",
method=GET,
params="name",
produces="application/json")
@ResponseStatus(value=OK)
public org.springframework.hateoas.PagedResources<JobExecutionThinResource> retrieveJobsByName(@RequestParam(value="name")
String jobName,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler)
throws org.springframework.batch.core.launch.NoSuchJobException
jobName - name of the jobpageable - page-able collection of TaskJobExecutions.assembler - for the TaskJobExecutionsorg.springframework.batch.core.launch.NoSuchJobException - if the job with the given name does not exist.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.