public interface TaskOperations
Modifier and Type | Method and Description |
---|---|
void |
cleanup(long id,
String schemaTarget)
Cleanup any resources associated with the execution for the id specified.
|
void |
cleanup(long id,
String schemaTarget,
boolean removeData)
Cleanup any resources associated with the execution for the id specified.
|
void |
cleanupAllTaskExecutions(boolean completed,
String taskName)
Cleanup any resources associated with the matching task executions.
|
TaskDefinitionResource |
create(String name,
String definition,
String description)
Create a new task definition
|
Collection<CurrentTaskExecutionsResource> |
currentTaskExecutions()
Return information including the count of currently executing tasks and task execution
limits.
|
void |
destroy(String name)
Destroy an existing task.
|
void |
destroy(String name,
boolean cleanup)
Destroy an existing task with the flag to cleanup task resources.
|
void |
destroyAll()
Destroy all existing tasks.
|
org.springframework.hateoas.PagedModel<TaskExecutionResource> |
executionList() |
org.springframework.hateoas.PagedModel<TaskExecutionResource> |
executionListByTaskName(String taskName)
List task executions known to the system filtered by task name.
|
Integer |
getAllTaskExecutionsCount(boolean completed,
String taskName)
Get the task executions count with the option to filter only the completed task executions.
|
LaunchResponseResource |
launch(String name,
Map<String,String> properties,
List<String> arguments)
Launch an already created task.
|
org.springframework.hateoas.PagedModel<TaskDefinitionResource> |
list() |
org.springframework.hateoas.PagedModel<LauncherResource> |
listPlatforms() |
void |
stop(String ids,
String schemaTarget)
Request the stop of a group
TaskExecution s. |
void |
stop(String ids,
String schemaTarget,
String platform)
Request the stop of a group
TaskExecution s. |
String |
taskExecutionLog(String externalExecutionId)
Return the task execution log.
|
String |
taskExecutionLog(String externalExecutionId,
String platform)
Return the task execution log.
|
TaskExecutionResource |
taskExecutionStatus(long id,
String schemaTarget)
Return the
TaskExecutionResource for the id specified. |
TaskAppStatusResource |
validateTaskDefinition(String taskDefinitionName)
Return the validation status for the tasks in an definition.
|
org.springframework.hateoas.PagedModel<TaskDefinitionResource> list()
org.springframework.hateoas.PagedModel<LauncherResource> listPlatforms()
TaskDefinitionResource create(String name, String definition, String description)
name
- the name of the taskdefinition
- the task definition DSLdescription
- the description of the task definitionLaunchResponseResource launch(String name, Map<String,String> properties, List<String> arguments)
name
- the name of the taskproperties
- the deployment propertiesarguments
- the command line argumentsvoid stop(String ids, String schemaTarget)
TaskExecution
s.ids
- comma delimited set of TaskExecution
ids to stop.schemaTarget
- the schema target of the task execution.void stop(String ids, String schemaTarget, String platform)
TaskExecution
s.ids
- comma delimited set of TaskExecution
ids to stop.schemaTarget
- the schema target of the task execution.platform
- the platform name where the task is executing.void destroy(String name)
name
- the name of the taskvoid destroy(String name, boolean cleanup)
name
- the name of the taskcleanup
- flag indicates task execution cleanuporg.springframework.hateoas.PagedModel<TaskExecutionResource> executionList()
org.springframework.hateoas.PagedModel<TaskExecutionResource> executionListByTaskName(String taskName)
taskName
- of the executions.TaskExecutionResource taskExecutionStatus(long id, String schemaTarget)
TaskExecutionResource
for the id specified.id
- identifier of the task executionschemaTarget
- the schema target of the task execution.TaskExecutionResource
String taskExecutionLog(String externalExecutionId)
default
.externalExecutionId
- the external execution identifier of the task execution.String
containing the log.String taskExecutionLog(String externalExecutionId, String platform)
externalExecutionId
- the external execution identifier of the task execution.platform
- the platform from which to obtain the log.String
containing the log.Collection<CurrentTaskExecutionsResource> currentTaskExecutions()
CurrentTaskExecutionsResource
void cleanup(long id, String schemaTarget)
id
- identifier of the task executionschemaTarget
- the schema target of the task execution.void cleanup(long id, String schemaTarget, boolean removeData)
id
- identifier of the task executionschemaTarget
- the schema target of the task execution.removeData
- delete the history of the executionvoid cleanupAllTaskExecutions(boolean completed, String taskName)
completed
- cleanup only completed task executionstaskName
- the name of the task to cleanup, if null then all the tasks are considered.Integer getAllTaskExecutionsCount(boolean completed, String taskName)
completed
- cleanup only completed task executionstaskName
- the name of the task to cleanup, if null then all the tasks are considered.TaskAppStatusResource 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 © 2023 Pivotal Software, Inc.. All rights reserved.