@RestController @RequestMapping(value="/jobs/executions/{jobExecutionId}/steps") @ExposesResourceFor(value=StepExecutionInfoResource.class) public class BatchStepExecutionsController extends AbstractBatchJobsController
StepExecution
s.jobExecutionInfoResourceAssembler, jobInfoResourceAssembler, jobInstanceInfoResourceAssembler, jobService, progressInfoResourceAssembler, stepExecutionInfoResourceAssembler, timeZone, xdJobDefinitionRepository, xdJobrepository
Constructor and Description |
---|
BatchStepExecutionsController() |
Modifier and Type | Method and Description |
---|---|
StepExecutionInfoResource |
details(long jobExecutionId,
long stepExecutionId)
Inspect the StepExecution with the provided Step Execution Id
|
java.util.Collection<StepExecutionInfoResource> |
list(long jobExecutionId)
List all step executions.
|
StepExecutionProgressInfoResource |
progress(long jobExecutionId,
long stepExecutionId)
Get the step execution progress for the given jobExecutions step.
|
setTimeZone
@RequestMapping(value="", method=GET, produces="application/json") @ResponseStatus(value=OK) public java.util.Collection<StepExecutionInfoResource> list(@PathVariable(value="jobExecutionId") long jobExecutionId)
jobExecutionId
- Id of the JobExecution
, must not be nullStepExecutionInfoResource
for the given jobExecutionIdNoSuchJobExecutionException
- Thrown if the respective JobExecution
does not exist@RequestMapping(value="/{stepExecutionId}", method=GET) @ResponseStatus(value=OK) public StepExecutionInfoResource details(@PathVariable long jobExecutionId, @PathVariable long stepExecutionId)
jobExecutionId
- Id of the JobExecution
, must not be nullstepExecutionId
- Id of the StepExecution
, must not be nullStepExecutionInfoResource
that has the details on the given StepExecution
.NoSuchJobExecutionException
- Thrown if the respective JobExecution
does not existNoSuchStepExecutionException
- Thrown if the respective StepExecution
does not exist@RequestMapping(value="/{stepExecutionId}/progress", method=GET) @ResponseStatus(value=OK) public StepExecutionProgressInfoResource progress(@PathVariable long jobExecutionId, @PathVariable long stepExecutionId)
jobExecutionId
- Id of the JobExecution
, must not be nullstepExecutionId
- Id of the StepExecution
, must not be nullStepExecutionInfoResource
that has the progress info on the given StepExecution
.NoSuchJobExecutionException
- Thrown if the respective JobExecution
does not existNoSuchStepExecutionException
- Thrown if the respective StepExecution
does not exist