public class TaskTemplate extends Object implements TaskOperations
TaskOperations.| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(long id)
Cleanup any resources associated with the execution for the id specified.
|
TaskDefinitionResource |
create(String name,
String definition)
Create a new task definition
|
void |
destroy(String name)
Destroy an existing task.
|
TaskExecutionResource.Page |
executionList() |
TaskExecutionResource.Page |
executionListByTaskName(String taskName)
List task executions known to the system filtered by task name.
|
long |
launch(String name,
Map<String,String> properties,
List<String> arguments)
Launch an already created task.
|
TaskDefinitionResource.Page |
list() |
TaskExecutionResource |
taskExecutionStatus(long id)
Return the
TaskExecutionResource for the id specified. |
public TaskDefinitionResource.Page list()
list in interface TaskOperationspublic TaskDefinitionResource create(String name, String definition)
TaskOperationscreate in interface TaskOperationsname - the name of the taskdefinition - the task definition DSLpublic long launch(String name, Map<String,String> properties, List<String> arguments)
TaskOperationslaunch in interface TaskOperationsname - the name of the taskproperties - the deployment propertiesarguments - the command line argumentspublic void destroy(String name)
TaskOperationsdestroy in interface TaskOperationsname - the name of the taskpublic TaskExecutionResource.Page executionList()
executionList in interface TaskOperationspublic TaskExecutionResource.Page executionListByTaskName(String taskName)
TaskOperationsexecutionListByTaskName in interface TaskOperationstaskName - of the executions.public TaskExecutionResource taskExecutionStatus(long id)
TaskOperationsTaskExecutionResource for the id specified.taskExecutionStatus in interface TaskOperationsid - identifier of the task executionTaskExecutionResourcepublic void cleanup(long id)
TaskOperationscleanup in interface TaskOperationsid - identifier of the task executionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.