@RestController @RequestMapping(value="/tasks/composed-definitions") @ExposesResourceFor(value=ComposedTaskResource.class) public class ComposedTaskController extends Object
| Constructor and Description |
|---|
ComposedTaskController(TaskDefinitionRepository repository,
DeploymentIdRepository deploymentIdRepository,
org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher,
ComposedTaskProperties composedTaskProperties)
Creates a
TaskDefinitionController that delegates
CRUD operations to the provided TaskDefinitionRepository
task status checks to the provided TaskLauncher
|
| Modifier and Type | Method and Description |
|---|---|
ComposedTaskResource |
saveComposedTask(String name,
String graph)
Register a composed task definition for future execution.
|
public ComposedTaskController(TaskDefinitionRepository repository, DeploymentIdRepository deploymentIdRepository, org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher, ComposedTaskProperties composedTaskProperties)
TaskDefinitionController that delegates
TaskDefinitionRepositoryTaskLauncherrepository - the repository this controller will use for task CRUD operations.deploymentIdRepository - the repository this controller will use for deployment IDstaskLauncher - the TaskLauncher this controller will use to check task status.composedTaskProperties - properties used to get composed task information.@RequestMapping(value="", method=POST) public ComposedTaskResource saveComposedTask(@RequestParam(value="name") String name, @RequestParam(value="definition") String graph)
name - name of the composed taskgraph - DSL definition for the composed taskCopyright © 2017 Pivotal Software, Inc.. All rights reserved.