public interface 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.
|
org.springframework.hateoas.PagedResources<TaskExecutionResource> |
executionList() |
org.springframework.hateoas.PagedResources<TaskExecutionResource> |
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.
|
org.springframework.hateoas.PagedResources<TaskDefinitionResource> |
list() |
org.springframework.hateoas.PagedResources<LauncherResource> |
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.
|
org.springframework.hateoas.PagedResources<TaskDefinitionResource> list()
org.springframework.hateoas.PagedResources<LauncherResource> listPlatforms()
TaskDefinitionResource create(String name, String definition)
name
- the name of the taskdefinition
- the task definition DSLlong launch(String name, Map<String,String> properties, List<String> arguments)
name
- the name of the taskproperties
- the deployment propertiesarguments
- the command line argumentsvoid destroy(String name)
name
- the name of the taskorg.springframework.hateoas.PagedResources<TaskExecutionResource> executionList()
org.springframework.hateoas.PagedResources<TaskExecutionResource> executionListByTaskName(String taskName)
taskName
- of the executions.TaskExecutionResource taskExecutionStatus(long id)
TaskExecutionResource
for the id specified.id
- identifier of the task executionTaskExecutionResource
CurrentTaskExecutionsResource currentTaskExecutions()
CurrentTaskExecutionsResource
void cleanup(long id)
id
- identifier of the task executionTaskAppStatusResource validateTaskDefinition(String taskDefinitionName) throws OperationNotSupportedException
taskDefinitionName
- The name of the task definition to be validated.TaskAppStatusResource
containing the task app statuses.OperationNotSupportedException
- if the server does not support task validationvoid destroyAll()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.