@Controller
@RequestMapping(value="/batch/jobs")
@ExposesResourceFor(value=org.springframework.batch.admin.web.JobExecutionInfo.class)
public class BatchJobExecutionsController
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BatchJobExecutionsController.StopRequest |
Constructor and Description |
---|
BatchJobExecutionsController(org.springframework.batch.admin.service.JobService jobService) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<org.springframework.batch.admin.web.JobExecutionInfo> |
list(int startJobExecution,
int pageSize) |
java.util.Collection<org.springframework.batch.admin.web.JobExecutionInfo> |
listForJob(java.lang.String jobName,
int startJobExecution,
int pageSize) |
void |
setTimeZone(java.util.TimeZone timeZone) |
@Autowired public BatchJobExecutionsController(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={"/executions","/executions.*"}, method=GET) @ResponseStatus(value=OK) @ResponseBody public java.util.Collection<org.springframework.batch.admin.web.JobExecutionInfo> list(@RequestParam(defaultValue="0") int startJobExecution, @RequestParam(defaultValue="20") int pageSize)
@RequestMapping(value="/{jobName}/executions", method=GET) @ResponseStatus(value=OK) @ResponseBody public java.util.Collection<org.springframework.batch.admin.web.JobExecutionInfo> listForJob(@PathVariable java.lang.String jobName, @RequestParam(defaultValue="0") int startJobExecution, @RequestParam(defaultValue="20") int pageSize)