@Controller
@RequestMapping(value="/batch/jobs")
@ExposesResourceFor(value=org.springframework.batch.admin.web.JobInfo.class)
public class BatchJobsController
extends java.lang.Object
Constructor and Description |
---|
BatchJobsController(org.springframework.batch.admin.service.JobService jobService) |
Modifier and Type | Method and Description |
---|---|
ExpandedJobInfo |
jobinfo(java.lang.String jobName) |
java.util.Collection<org.springframework.batch.core.JobInstance> |
jobInstances(java.lang.String jobName,
int startJobInstance,
int pageSize) |
java.util.Collection<org.springframework.batch.admin.web.JobInfo> |
jobs(int startJob,
int pageSize) |
void |
setTimeZone(java.util.TimeZone timeZone) |
@Autowired public BatchJobsController(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<org.springframework.batch.admin.web.JobInfo> jobs(@RequestParam(defaultValue="0") int startJob, @RequestParam(defaultValue="20") int pageSize)
@RequestMapping(value="/{jobName}/instances", method=GET) @ResponseBody @ResponseStatus(value=OK) public java.util.Collection<org.springframework.batch.core.JobInstance> jobInstances(@PathVariable java.lang.String jobName, @RequestParam(defaultValue="0") int startJobInstance, @RequestParam(defaultValue="20") int pageSize)
@RequestMapping(value="/{jobName}", method=GET) @ResponseBody @ResponseStatus(value=OK) public ExpandedJobInfo jobinfo(@PathVariable java.lang.String jobName)