Class JobStepExecutionController
java.lang.Object
org.springframework.cloud.dataflow.server.controller.JobStepExecutionController
@RestController
@RequestMapping("/jobs/executions/{jobExecutionId}/steps")
@ExposesResourceFor(StepExecutionResource.class)
public class JobStepExecutionController
extends Object
- Author:
- Glenn Renfro, Corneil du Plessis
-
Constructor Summary
ConstructorsConstructorDescriptionJobStepExecutionController(JobService jobService) Creates aJobStepExecutionsControllerthat retrieves Job Step Execution information from a theJobService -
Method Summary
Modifier and TypeMethodDescriptiongetStepExecution(Long id, Long stepId) Retrieve a specificStepExecutionResource.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.
-
Constructor Details
-
JobStepExecutionController
Creates aJobStepExecutionsControllerthat retrieves Job Step Execution information from a theJobService- Parameters:
jobService- JobService used for this controller
-
-
Method Details
-
stepExecutions
@GetMapping("") @ResponseStatus(OK) public org.springframework.hateoas.PagedModel<StepExecutionResource> stepExecutions(@PathVariable("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 List all step executions.- Parameters:
id- theJobExecution.pageable- the pagination information.assembler- the resource assembler for step executions.- Returns:
- Collection of
StepExecutionResourcefor the given jobExecutionId. - Throws:
org.springframework.batch.core.launch.NoSuchJobExecutionException- if the job execution for the id specified does not exist.
-
getStepExecution
@GetMapping("/{stepExecutionId}") @ResponseStatus(OK) public StepExecutionResource getStepExecution(@PathVariable("jobExecutionId") Long id, @PathVariable("stepExecutionId") Long stepId) throws NoSuchStepExecutionException, org.springframework.batch.core.launch.NoSuchJobExecutionException Retrieve a specificStepExecutionResource.- Parameters:
id- theJobExecutionid.stepId- theStepExecutionid.- Returns:
- Collection of
StepExecutionResourcefor the given jobExecutionId. - Throws:
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.
-