@RestController @RequestMapping(value="/tasks/executions") @ExposesResourceFor(value=TaskExecutionResource.class) public class TaskExecutionController extends Object
TaskExecution.
This includes obtaining task execution information from the task explorer.| Constructor and Description |
|---|
TaskExecutionController(org.springframework.cloud.task.repository.TaskExplorer explorer,
TaskDefinitionRepository taskDefinitionRepository)
Creates a
TaskExecutionController that retrieves Task Execution information
from a the TaskExplorer |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.PagedResources<TaskExecutionResource> |
list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecutionRel> assembler)
Return a page-able list of
TaskExecutionResource defined tasks. |
org.springframework.hateoas.PagedResources<TaskExecutionResource> |
retrieveTasksByName(String taskName,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecutionRel> assembler)
Retrieve all task executions with the task name specified
|
TaskExecutionResource |
view(long id)
View the details of a single task execution, specified by id.
|
public TaskExecutionController(org.springframework.cloud.task.repository.TaskExplorer explorer,
TaskDefinitionRepository taskDefinitionRepository)
TaskExecutionController that retrieves Task Execution information
from a the TaskExplorerexplorer - the explorer this controller will use for retrieving
task execution information.taskDefinitionRepository - the task definition repository@RequestMapping(value="", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.PagedResources<TaskExecutionResource> list(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<TaskJobExecutionRel> assembler)
TaskExecutionResource defined tasks.pageable - page-able collection of TaskExecutions.assembler - for the TaskExecutions@RequestMapping(value="", method=GET, params="name") @ResponseStatus(value=OK) public org.springframework.hateoas.PagedResources<TaskExecutionResource> retrieveTasksByName(@RequestParam(value="name") String taskName, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<TaskJobExecutionRel> assembler)
taskName - name of the taskpageable - page-able collection of TaskExecutions.assembler - for the TaskExecutions@RequestMapping(value="/{id}", method=GET) @ResponseStatus(value=OK) public TaskExecutionResource view(@PathVariable(value="id") long id)
id - the id of the requested TaskExecutionTaskExecutionCopyright © 2017 Pivotal Software, Inc.. All rights reserved.