use of com.tencent.angel.master.deploy.yarn.YarnContainerLauncherEvent in project angel by Tencent.
the class WorkerAttempt method cleanContainer.
@SuppressWarnings("unchecked")
private void cleanContainer() {
AngelDeployMode deployMode = context.getDeployMode();
ContainerLauncherEvent launchEvent = null;
if (deployMode == AngelDeployMode.LOCAL) {
launchEvent = new LocalContainerLauncherEvent(ContainerLauncherEventType.CONTAINER_REMOTE_CLEANUP, id);
} else {
launchEvent = new YarnContainerLauncherEvent(id, container.getId(), StringInterner.weakIntern(container.getNodeId().toString()), container.getContainerToken(), ContainerLauncherEventType.CONTAINER_REMOTE_CLEANUP);
}
context.getEventHandler().handle(launchEvent);
}
Aggregations