@RestController @RequestMapping(value="/jobs/executions/{jobExecutionId}/steps") @ExposesResourceFor(value=StepExecutionResource.class) public class JobStepExecutionController extends Object
Constructor and Description |
---|
JobStepExecutionController(JobService jobService)
Creates a
JobStepExecutionsController that retrieves Job Step Execution
information from a the JobService |
Modifier and Type | Method and Description |
---|---|
StepExecutionResource |
getStepExecution(Long id,
Long stepId)
Retrieve a specific
StepExecutionResource . |
org.springframework.hateoas.PagedModel<StepExecutionResource> |
stepExecutions(long id,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<org.springframework.batch.core.StepExecution> assembler)
List all step executions.
|
@Autowired public JobStepExecutionController(JobService jobService)
JobStepExecutionsController
that retrieves Job Step Execution
information from a the JobService
jobService
- the service this controller will use for retrieving job step
execution information.@RequestMapping(value="", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.PagedModel<StepExecutionResource> stepExecutions(@PathVariable(value="jobExecutionId") long id, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<org.springframework.batch.core.StepExecution> assembler) throws org.springframework.batch.core.launch.NoSuchJobExecutionException
id
- the JobExecution
.pageable
- the pagination information.assembler
- the resource assembler for step executions.StepExecutionResource
for the given jobExecutionId.org.springframework.batch.core.launch.NoSuchJobExecutionException
- if the job execution for the id specified does
not exist.@RequestMapping(value="/{stepExecutionId}", method=GET) @ResponseStatus(value=OK) public StepExecutionResource getStepExecution(@PathVariable(value="jobExecutionId") Long id, @PathVariable(value="stepExecutionId") Long stepId) throws NoSuchStepExecutionException, org.springframework.batch.core.launch.NoSuchJobExecutionException
StepExecutionResource
.id
- the JobExecution
id.stepId
- the StepExecution
id.StepExecutionResource
for the given jobExecutionId.NoSuchStepExecutionException
- if the stepId specified does not exist.org.springframework.batch.core.launch.NoSuchJobExecutionException
- if the job execution for the id specified does
not exist.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.