java.lang.Runnablepublic class DockerContainerDeletionTask extends DeletionTask implements java.lang.Runnable
DeletionTask handling the removal of Docker containers.INVALID_TASK_ID| Constructor | Description |
|---|---|
DockerContainerDeletionTask(int taskId,
DeletionService deletionService,
java.lang.String user,
java.lang.String containerId) |
|
DockerContainerDeletionTask(DeletionService deletionService,
java.lang.String user,
java.lang.String containerId) |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.DeletionServiceDeleteTaskProto |
convertDeletionTaskToProto() |
Convert the DockerContainerDeletionTask to the Protobuf representation for
storing in the state store and recovery.
|
java.lang.String |
getContainerId() |
Get the id of the container to delete.
|
void |
run() |
Delete the specified Docker container.
|
java.lang.String |
toString() |
Convert the DockerContainerDeletionTask to a String representation.
|
addDeletionTaskDependency, decrementAndGetPendingPredecessorTasks, getDeletionService, getDeletionTaskType, getSuccessorTasks, getSucess, getTaskId, getUser, incrementAndGetPendingPredecessorTasks, setSuccess, setTaskIdpublic DockerContainerDeletionTask(DeletionService deletionService, java.lang.String user, java.lang.String containerId)
public DockerContainerDeletionTask(int taskId,
DeletionService deletionService,
java.lang.String user,
java.lang.String containerId)
public java.lang.String getContainerId()
public void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
toString in class java.lang.Objectpublic org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.DeletionServiceDeleteTaskProto convertDeletionTaskToProto()
convertDeletionTaskToProto in class DeletionTaskCopyright © 2008–2025 Apache Software Foundation. All rights reserved.