Class DockerContainerDeletionTask
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.containermanager.deletion.task.DeletionTask
org.apache.hadoop.yarn.server.nodemanager.containermanager.deletion.task.DockerContainerDeletionTask
- All Implemented Interfaces:
Runnable
DeletionTask handling the removal of Docker containers.-
Field Summary
Fields inherited from class org.apache.hadoop.yarn.server.nodemanager.containermanager.deletion.task.DeletionTask
INVALID_TASK_ID -
Constructor Summary
ConstructorsConstructorDescriptionDockerContainerDeletionTask(int taskId, DeletionService deletionService, String user, String containerId) DockerContainerDeletionTask(DeletionService deletionService, String user, String containerId) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.DeletionServiceDeleteTaskProtoConvert the DockerContainerDeletionTask to the Protobuf representation for storing in the state store and recovery.Get the id of the container to delete.voidrun()Delete the specified Docker container.toString()Convert the DockerContainerDeletionTask to a String representation.Methods inherited from class org.apache.hadoop.yarn.server.nodemanager.containermanager.deletion.task.DeletionTask
addDeletionTaskDependency, decrementAndGetPendingPredecessorTasks, getDeletionService, getDeletionTaskType, getSuccessorTasks, getSucess, getTaskId, getUser, incrementAndGetPendingPredecessorTasks, setSuccess, setTaskId
-
Constructor Details
-
DockerContainerDeletionTask
public DockerContainerDeletionTask(DeletionService deletionService, String user, String containerId) -
DockerContainerDeletionTask
public DockerContainerDeletionTask(int taskId, DeletionService deletionService, String user, String containerId)
-
-
Method Details
-
getContainerId
Get the id of the container to delete.- Returns:
- the id of the container to delete.
-
run
public void run()Delete the specified Docker container. -
toString
Convert the DockerContainerDeletionTask to a String representation. -
convertDeletionTaskToProto
public org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.DeletionServiceDeleteTaskProto convertDeletionTaskToProto()Convert the DockerContainerDeletionTask to the Protobuf representation for storing in the state store and recovery.- Specified by:
convertDeletionTaskToProtoin classDeletionTask- Returns:
- the protobuf representation of the DockerContainerDeletionTask.
-