@RestController @RequestMapping(value="/jobs/executions/{jobExecutionId}/steps") @ExposesResourceFor(value=StepExecutionResource.class) public class JobStepExecutionController extends Object
| Constructor and Description |
|---|
JobStepExecutionController(org.springframework.batch.admin.service.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.PagedResources<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(org.springframework.batch.admin.service.JobService jobService)
JobStepExecutionsController that retrieves Job Step Execution
information from a the JobServicejobService - the service this controller will use for retrieving
job step execution information.@RequestMapping(value="", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.PagedResources<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.StepExecutionResource for the given jobExecutionIdorg.springframework.batch.core.launch.NoSuchJobExecutionException@RequestMapping(value="/{stepExecutionId}", method=GET) @ResponseStatus(value=OK) public StepExecutionResource getStepExecution(@PathVariable(value="jobExecutionId") Long id, @PathVariable(value="stepExecutionId") Long stepId) throws org.springframework.batch.admin.service.NoSuchStepExecutionException, org.springframework.batch.core.launch.NoSuchJobExecutionException
StepExecutionResource.id - the JobExecution id.stepId - the StepExecution id.StepExecutionResource for the given jobExecutionIdorg.springframework.batch.admin.service.NoSuchStepExecutionExceptionorg.springframework.batch.core.launch.NoSuchJobExecutionExceptionCopyright © 2016 Pivotal Software, Inc.. All rights reserved.