public class DefaultTaskDeleteService extends Object implements TaskDeleteService
TaskDeleteService
interface. Provide service
methods for Task deletion.Modifier and Type | Field and Description |
---|---|
protected AuditRecordService |
auditRecordService |
Constructor and Description |
---|
DefaultTaskDeleteService(org.springframework.cloud.task.repository.TaskExplorer taskExplorer,
LauncherRepository launcherRepository,
TaskDefinitionRepository taskDefinitionRepository,
TaskDeploymentRepository taskDeploymentRepository,
AuditRecordService auditRecordService) |
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 |
deleteAll()
Destroy all task definitions.
|
void |
deleteTaskDefinition(String name)
Destroy the task definition.
|
protected final AuditRecordService auditRecordService
public DefaultTaskDeleteService(org.springframework.cloud.task.repository.TaskExplorer taskExplorer, LauncherRepository launcherRepository, TaskDefinitionRepository taskDefinitionRepository, TaskDeploymentRepository taskDeploymentRepository, AuditRecordService auditRecordService)
public void cleanupExecution(long id)
TaskDeleteService
cleanupExecution
in interface TaskDeleteService
id
- the execution idpublic void deleteTaskDefinition(String name)
TaskDeleteService
deleteTaskDefinition
in interface TaskDeleteService
name
- The name of the task.public void deleteAll()
TaskDeleteService
deleteAll
in interface TaskDeleteService
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.