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
|
CurrentTaskExecutionsResource |
currentTaskExecutions()
Return information including the count of currently executing tasks and task execution
limits.
|
void |
destroy(String name)
Destroy an existing task.
|
void |
destroyAll()
Destroy all existing tasks.
|
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() |
LauncherResource.Page |
listPlatforms() |
TaskExecutionResource |
taskExecutionStatus(long id)
Return the
TaskExecutionResource for the id specified. |
TaskAppStatusResource |
validateTaskDefinition(String taskDefinitionName)
Return the validation status for the tasks in an definition.
|
public TaskDefinitionResource.Page list()
list in interface TaskOperationspublic LauncherResource.Page listPlatforms()
listPlatforms 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 void destroyAll()
TaskOperationsdestroyAll in interface TaskOperationspublic 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 CurrentTaskExecutionsResource currentTaskExecutions()
TaskOperationscurrentTaskExecutions in interface TaskOperationsCurrentTaskExecutionsResourcepublic void cleanup(long id)
TaskOperationscleanup in interface TaskOperationsid - identifier of the task executionpublic TaskAppStatusResource validateTaskDefinition(String taskDefinitionName) throws OperationNotSupportedException
TaskOperationsvalidateTaskDefinition in interface TaskOperationstaskDefinitionName - The name of the task definition to be validated.TaskAppStatusResource containing the task app statuses.OperationNotSupportedException - if the server does not support task validationCopyright © 2019 Pivotal Software, Inc.. All rights reserved.