@Controller @RequestMapping(value="/batch/executions/{jobExecutionId}/steps") @ExposesResourceFor(value=StepExecutionInfoResource.class) public class BatchStepExecutionsController extends java.lang.Object
StepExecution
s.Constructor and Description |
---|
BatchStepExecutionsController(org.springframework.batch.admin.service.JobService jobService) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
setTimeZone(java.util.TimeZone timeZone) |
@Autowired public BatchStepExecutionsController(org.springframework.batch.admin.service.JobService jobService)
@Autowired(required=false) @Qualifier(value="userTimeZone") public void setTimeZone(java.util.TimeZone timeZone)
timeZone
- the timeZone to set@RequestMapping(value="", method=GET) @ResponseStatus(value=OK) @ResponseBody 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}/progress", method=GET) @ResponseStatus(value=OK) @ResponseBody 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