@Controller public class JobExecutionController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JobExecutionController.StopRequest |
| Constructor and Description |
|---|
JobExecutionController(JobService jobService) |
| Modifier and Type | Method and Description |
|---|---|
String |
abandon(org.springframework.ui.Model model,
JobExecutionController.StopRequest stopRequest,
org.springframework.validation.Errors errors,
Long jobExecutionId) |
String |
detail(org.springframework.ui.Model model,
Long jobExecutionId,
Date date,
org.springframework.validation.Errors errors) |
String |
getExecutionContext(org.springframework.ui.Model model,
Long jobExecutionId,
Date date,
org.springframework.validation.Errors errors) |
Collection<JobExecutionInfo> |
list(org.springframework.ui.ModelMap model,
int startJobExecution,
int pageSize) |
String |
listForInstance(org.springframework.ui.Model model,
String jobName,
long jobInstanceId,
Date date,
org.springframework.validation.Errors errors) |
String |
listForJob(org.springframework.ui.ModelMap model,
String jobName,
Date date,
org.springframework.validation.Errors errors,
int startJobExecution,
int pageSize) |
String |
restart(org.springframework.ui.Model model,
String jobName,
long jobInstanceId,
Date date,
org.springframework.validation.Errors errors) |
void |
setObjectMapper(org.codehaus.jackson.map.ObjectMapper objectMapper) |
void |
setTimeZone(TimeZone timeZone) |
String |
stop(org.springframework.ui.Model model,
JobExecutionController.StopRequest stopRequest,
org.springframework.validation.Errors errors,
Long jobExecutionId) |
Collection<JobExecutionInfo> |
stopAll(org.springframework.ui.ModelMap model,
int startJobExecution,
int pageSize) |
@Autowired public JobExecutionController(JobService jobService)
@Autowired(required=false) @Qualifier(value="userTimeZone") public void setTimeZone(TimeZone timeZone)
timeZone - the timeZone to set@Autowired public void setObjectMapper(org.codehaus.jackson.map.ObjectMapper objectMapper)
@RequestMapping(value="/jobs/executions/{jobExecutionId}",
method=DELETE)
public String stop(org.springframework.ui.Model model,
@ModelAttribute(value="stopRequest")
JobExecutionController.StopRequest stopRequest,
org.springframework.validation.Errors errors,
@PathVariable
Long jobExecutionId)
@RequestMapping(value="/jobs/executions/{jobExecutionId}",
method=DELETE,
params="abandon")
public String abandon(org.springframework.ui.Model model,
@ModelAttribute(value="stopRequest")
JobExecutionController.StopRequest stopRequest,
org.springframework.validation.Errors errors,
@PathVariable
Long jobExecutionId)
@RequestMapping(value={"/jobs/executions","/jobs/executions.*"},
method=GET)
@ModelAttribute(value="jobExecutions")
public Collection<JobExecutionInfo> list(org.springframework.ui.ModelMap model,
@RequestParam(defaultValue="0")
int startJobExecution,
@RequestParam(defaultValue="20")
int pageSize)
@RequestMapping(value={"/jobs/{jobName}/{jobInstanceId}/executions","/jobs/{jobName}/{jobInstanceId}"},
method=GET)
public String listForInstance(org.springframework.ui.Model model,
@PathVariable
String jobName,
@PathVariable
long jobInstanceId,
@ModelAttribute(value="date")
Date date,
org.springframework.validation.Errors errors)
@RequestMapping(value="/jobs/{jobName}/{jobInstanceId}/executions",
method=POST)
public String restart(org.springframework.ui.Model model,
@PathVariable
String jobName,
@PathVariable
long jobInstanceId,
@ModelAttribute(value="date")
Date date,
org.springframework.validation.Errors errors)
@RequestMapping(value="/jobs/executions",
method=DELETE)
@ModelAttribute(value="jobExecutions")
public Collection<JobExecutionInfo> stopAll(org.springframework.ui.ModelMap model,
@RequestParam(defaultValue="0")
int startJobExecution,
@RequestParam(defaultValue="20")
int pageSize)
@RequestMapping(value="/jobs/{jobName}/executions",
method=GET)
public String listForJob(org.springframework.ui.ModelMap model,
@PathVariable
String jobName,
@ModelAttribute(value="date")
Date date,
org.springframework.validation.Errors errors,
@RequestParam(defaultValue="0")
int startJobExecution,
@RequestParam(defaultValue="20")
int pageSize)
@RequestMapping(value="/jobs/executions/{jobExecutionId}",
method=GET)
public String detail(org.springframework.ui.Model model,
@PathVariable
Long jobExecutionId,
@ModelAttribute(value="date")
Date date,
org.springframework.validation.Errors errors)
@RequestMapping(value="/jobs/executions/{jobExecutionId}/execution-context",
method=GET)
public String getExecutionContext(org.springframework.ui.Model model,
@PathVariable
Long jobExecutionId,
@ModelAttribute(value="date")
Date date,
org.springframework.validation.Errors errors)
Copyright © 2015. All rights reserved.