public interface TaskDeleteService
Modifier and Type | Method and Description |
---|---|
void |
cleanupExecution(long id)
Cleanup the resources that resulted from running the task with the given execution id.
|
void |
cleanupExecutions(Set<TaskExecutionControllerDeleteAction> actionsAsSet,
Set<Long> ids)
Cleanup the resources that resulted from running the task with the given execution
ids and actions.
|
void |
deleteAll()
Destroy all task definitions.
|
void |
deleteTaskDefinition(String name)
Destroy the task definition.
|
void |
deleteTaskDefinition(String name,
boolean cleanup)
Destroy the task definition.
|
void |
deleteTaskExecutions(Set<Long> ids)
Delete one or more Task executions.
|
void cleanupExecution(long id)
id
- the execution idvoid cleanupExecutions(Set<TaskExecutionControllerDeleteAction> actionsAsSet, Set<Long> ids)
actionsAsSet
- the actionsids
- the id'svoid deleteTaskExecutions(Set<Long> ids)
ids
- Collection of task execution ids to delete. Must contain at least 1 id.void deleteTaskDefinition(String name)
name
- The name of the task.void deleteTaskDefinition(String name, boolean cleanup)
name
- The name of the task.cleanup
- the flag to indicate the cleanup of the task executions for the task definition.void deleteAll()
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.