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
ConstructorsConstructorDescriptionJobStepExecutionProgressController(JobService jobService, TaskJobService taskJobService) Creates aJobStepProgressInfoExecutionsControllerthat 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 aJobStepProgressInfoExecutionsControllerthat 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:
StepExecutionProgressInfoResourcethat has the progress info on the givenStepExecution.- Throws:
org.springframework.batch.core.launch.NoSuchJobExecutionException- Thrown if the respectiveJobExecutiondoes not existNoSuchStepExecutionException- Thrown if the respectiveStepExecutiondoes not exist
-