public interface TaskDeleteService
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupExecution(long id,
String schemaTarget)
Cleanup the resources that resulted from running the task with the given execution id.
|
void |
cleanupExecutions(Set<TaskExecutionControllerDeleteAction> actionsAsSet,
Set<Long> ids,
String schemaTarget)
Cleanup the resources that resulted from running the task with the given execution
ids and actions.
|
void |
cleanupExecutions(Set<TaskExecutionControllerDeleteAction> actionsAsSet,
String taskName,
boolean onlyCompleted)
Clean up the resources that resulted from running the task with the given name.
|
void |
cleanupExecutions(Set<TaskExecutionControllerDeleteAction> actionsAsSet,
String taskName,
boolean onlyCompleted,
Integer includeTasksEndedMinDaysAgo)
Clean up the resources that resulted from running the task with the given name.
|
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,
String schemaTarget)
Delete one or more Task executions.
|
void |
deleteTaskExecutions(String taskName,
boolean onlyCompleted)
Delete task executions by name and execution state.
|
void cleanupExecution(long id,
String schemaTarget)
id - the execution idvoid cleanupExecutions(Set<TaskExecutionControllerDeleteAction> actionsAsSet, Set<Long> ids, String schemaTarget)
actionsAsSet - the actionsids - the id'svoid cleanupExecutions(Set<TaskExecutionControllerDeleteAction> actionsAsSet, String taskName, boolean onlyCompleted)
actionsAsSet - the actions to performtaskName - the task nameonlyCompleted - whether to include only completed tasksvoid cleanupExecutions(Set<TaskExecutionControllerDeleteAction> actionsAsSet, String taskName, boolean onlyCompleted, Integer includeTasksEndedMinDaysAgo)
actionsAsSet - the actions to performtaskName - the task nameonlyCompleted - whether to include only completed tasks (ignored when includeTasksEndedMinDaysAgo is specified)includeTasksEndedMinDaysAgo - only include tasks that have ended at least this many days agovoid deleteTaskExecutions(Set<Long> ids, String schemaTarget)
ids - Collection of task execution ids to delete. Must contain at least 1 id.void deleteTaskExecutions(String taskName, boolean onlyCompleted)
taskName - the name of the task executionsonlyCompleted - indicator to delete only completed tasksvoid 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 © 2023 Pivotal Software, Inc.. All rights reserved.