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 TaskOperations
public TaskDefinitionResource create(String name, String definition)
TaskOperations
create
in interface TaskOperations
name
- the name of the taskdefinition
- the task definition DSLpublic long launch(String name, Map<String,String> properties, List<String> arguments)
TaskOperations
launch
in interface TaskOperations
name
- the name of the taskproperties
- the deployment propertiesarguments
- the command line argumentspublic void destroy(String name)
TaskOperations
destroy
in interface TaskOperations
name
- the name of the taskpublic TaskExecutionResource.Page executionList()
executionList
in interface TaskOperations
public TaskExecutionResource.Page executionListByTaskName(String taskName)
TaskOperations
executionListByTaskName
in interface TaskOperations
taskName
- of the executions.public TaskExecutionResource taskExecutionStatus(long id)
TaskOperations
TaskExecutionResource
for the id specified.taskExecutionStatus
in interface TaskOperations
id
- identifier of the task executionTaskExecutionResource
public void cleanup(long id)
TaskOperations
cleanup
in interface TaskOperations
id
- identifier of the task executionCopyright © 2017 Pivotal Software, Inc.. All rights reserved.