Class JobStepExecutionProgressController
java.lang.Object
org.springframework.cloud.dataflow.server.controller.JobStepExecutionProgressController
@RestController
@RequestMapping("/jobs/executions/{jobExecutionId}/steps")
@ExposesResourceFor(StepExecutionProgressInfoResource.class)
public class JobStepExecutionProgressController
extends Object
- Author:
- Glenn Renfro, Corneil du Plessis
-
Constructor Summary
ConstructorDescriptionJobStepExecutionProgressController
(JobService jobService, TaskJobService taskJobService) Creates aJobStepProgressInfoExecutionsController
that retrieves Job Step Progress Execution information from a theJobService
-
Method Summary
Modifier and TypeMethodDescriptionprogress
(long jobExecutionId, long stepExecutionId) Get the step execution progress for the given jobExecutions step.
-
Constructor Details
-
JobStepExecutionProgressController
Creates aJobStepProgressInfoExecutionsController
that retrieves Job Step Progress Execution information from a theJobService
- Parameters:
jobService
- The JobService this controller will use for retrieving job step progress execution information.taskJobService
- Queries both schemas.
-
-
Method Details
-
progress
@GetMapping("/{stepExecutionId}/progress") @ResponseStatus(OK) public StepExecutionProgressInfoResource progress(@PathVariable long jobExecutionId, @PathVariable long stepExecutionId) throws NoSuchStepExecutionException, org.springframework.batch.core.launch.NoSuchJobExecutionException Get the step execution progress for the given jobExecutions step.- Parameters:
jobExecutionId
- Id of theJobExecution
, must not be nullstepExecutionId
- Id of theStepExecution
, must not be null- Returns:
StepExecutionProgressInfoResource
that has the progress info on the givenStepExecution
.- Throws:
org.springframework.batch.core.launch.NoSuchJobExecutionException
- Thrown if the respectiveJobExecution
does not existNoSuchStepExecutionException
- Thrown if the respectiveStepExecution
does not exist
-