Class TaskExecutionThinController
java.lang.Object
org.springframework.cloud.dataflow.server.controller.TaskExecutionThinController
@RestController
@RequestMapping("/tasks/thinexecutions")
@ExposesResourceFor(TaskExecutionThinResource.class)
public class TaskExecutionThinController
extends Object
This controller provides for retrieving a thin task execution resource that will satisfy UI paging with embedded links to more detail.
- Author:
- Corneil du Plessis
-
Constructor Summary
ConstructorDescriptionTaskExecutionThinController
(DataflowTaskExplorer explorer, TaskDefinitionRepository taskDefinitionRepository) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.hateoas.PagedModel<TaskExecutionThinResource>
listTasks
(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<ThinTaskExecution> pagedAssembler) org.springframework.hateoas.PagedModel<TaskExecutionThinResource>
retrieveTasksByName
(String taskName, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<ThinTaskExecution> pagedAssembler)
-
Constructor Details
-
TaskExecutionThinController
public TaskExecutionThinController(DataflowTaskExplorer explorer, TaskDefinitionRepository taskDefinitionRepository)
-
-
Method Details
-
listTasks
@GetMapping(produces="application/json") @ResponseStatus(OK) public org.springframework.hateoas.PagedModel<TaskExecutionThinResource> listTasks(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<ThinTaskExecution> pagedAssembler) -
retrieveTasksByName
@GetMapping(value="", params="name") @ResponseStatus(OK) public org.springframework.hateoas.PagedModel<TaskExecutionThinResource> retrieveTasksByName(@RequestParam("name") String taskName, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<ThinTaskExecution> pagedAssembler)
-