org.springframework.batch.admin.web
Class JobExecutionController
java.lang.Object
org.springframework.batch.admin.web.JobExecutionController
@Controller
public class JobExecutionController
- extends Object
Controller for job executions.
- Author:
- Dave Syer
|
Method Summary |
String |
abandon(Model model,
JobExecutionController.StopRequest stopRequest,
Errors errors,
Long jobExecutionId)
|
String |
detail(Model model,
Long jobExecutionId,
Date date,
Errors errors)
|
Collection<JobExecutionInfo> |
list(ModelMap model,
int startJobExecution,
int pageSize)
|
String |
listForInstance(Model model,
String jobName,
long jobInstanceId,
Date date,
Errors errors)
|
String |
listForJob(ModelMap model,
String jobName,
Date date,
Errors errors,
int startJobExecution,
int pageSize)
|
String |
restart(Model model,
String jobName,
long jobInstanceId,
Date date,
Errors errors)
|
void |
setTimeZone(TimeZone timeZone)
|
String |
stop(Model model,
JobExecutionController.StopRequest stopRequest,
Errors errors,
Long jobExecutionId)
|
Collection<JobExecutionInfo> |
stopAll(ModelMap model,
int startJobExecution,
int pageSize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobExecutionController
public JobExecutionController(JobService jobService)
setTimeZone
@Qualifier(value="userTimeZone")
public void setTimeZone(TimeZone timeZone)
- Parameters:
timeZone - the timeZone to set
stop
@RequestMapping(value="/jobs/executions/{jobExecutionId}",
method=DELETE)
public String stop(Model model,
@ModelAttribute(value="stopRequest")
JobExecutionController.StopRequest stopRequest,
Errors errors,
@PathVariable
Long jobExecutionId)
abandon
@RequestMapping(value="/jobs/executions/{jobExecutionId}",
method=DELETE,
params="abandon")
public String abandon(Model model,
@ModelAttribute(value="stopRequest")
JobExecutionController.StopRequest stopRequest,
Errors errors,
@PathVariable
Long jobExecutionId)
list
@RequestMapping(value={"/jobs/executions","/jobs/executions.*"},
method=GET)
@ModelAttribute(value="jobExecutions")
public Collection<JobExecutionInfo> list(ModelMap model,
@RequestParam(defaultValue="0")
int startJobExecution,
@RequestParam(defaultValue="20")
int pageSize)
listForInstance
@RequestMapping(value={"/jobs/{jobName}/{jobInstanceId}/executions","/jobs/{jobName}/{jobInstanceId}"},
method=GET)
public String listForInstance(Model model,
@PathVariable
String jobName,
@PathVariable
long jobInstanceId,
@ModelAttribute(value="date")
Date date,
Errors errors)
restart
@RequestMapping(value="/jobs/{jobName}/{jobInstanceId}/executions",
method=POST)
public String restart(Model model,
@PathVariable
String jobName,
@PathVariable
long jobInstanceId,
@ModelAttribute(value="date")
Date date,
Errors errors)
stopAll
@RequestMapping(value="/jobs/executions",
method=DELETE)
@ModelAttribute(value="jobExecutions")
public Collection<JobExecutionInfo> stopAll(ModelMap model,
@RequestParam(defaultValue="0")
int startJobExecution,
@RequestParam(defaultValue="20")
int pageSize)
listForJob
@RequestMapping(value="/jobs/{jobName}/executions",
method=GET)
public String listForJob(ModelMap model,
@PathVariable
String jobName,
@ModelAttribute(value="date")
Date date,
Errors errors,
@RequestParam(defaultValue="0")
int startJobExecution,
@RequestParam(defaultValue="20")
int pageSize)
detail
@RequestMapping(value="/jobs/executions/{jobExecutionId}",
method=GET)
public String detail(Model model,
@PathVariable
Long jobExecutionId,
@ModelAttribute(value="date")
Date date,
Errors errors)
Copyright © 2011. All Rights Reserved.