@RestController @RequestMapping(value="/jobs/executions/{jobExecutionId}/steps") @ExposesResourceFor(value=StepExecutionResource.class) public class JobStepExecutionController extends Object
Constructor and Description |
---|
JobStepExecutionController(JobServiceContainer jobServiceContainer)
Creates a
JobStepExecutionsController that retrieves Job Step Execution
information from a the JobServiceContainer |
Modifier and Type | Method and Description |
---|---|
StepExecutionResource |
getStepExecution(Long id,
Long stepId,
String schemaTarget)
Retrieve a specific
StepExecutionResource . |
org.springframework.hateoas.PagedModel<StepExecutionResource> |
stepExecutions(long id,
String schemaTarget,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<org.springframework.batch.core.StepExecution> assembler)
List all step executions.
|
@Autowired public JobStepExecutionController(JobServiceContainer jobServiceContainer)
JobStepExecutionsController
that retrieves Job Step Execution
information from a the JobServiceContainer
jobServiceContainer
- JobServiceContainer to select the JobService@RequestMapping(value="", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.PagedModel<StepExecutionResource> stepExecutions(@PathVariable(value="jobExecutionId") long id, @RequestParam(name="schemaTarget",required=false) String schemaTarget, 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, @RequestParam(name="schemaTarget",required=false) String schemaTarget) 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 © 2024 Pivotal Software, Inc.. All rights reserved.