use of org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainersLauncherEventType in project hadoop by apache.
the class ContainerImpl method sendLaunchEvent.
// dispatcher not typed
@SuppressWarnings("unchecked")
@Override
public void sendLaunchEvent() {
ContainersLauncherEventType launcherEvent = ContainersLauncherEventType.LAUNCH_CONTAINER;
if (recoveredStatus == RecoveredContainerStatus.LAUNCHED) {
// try to recover a container that was previously launched
launcherEvent = ContainersLauncherEventType.RECOVER_CONTAINER;
}
containerLaunchStartTime = clock.getTime();
dispatcher.getEventHandler().handle(new ContainersLauncherEvent(this, launcherEvent));
}
use of org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainersLauncherEventType in project hadoop by apache.
the class ContainerImpl method sendRelaunchEvent.
// dispatcher not typed
@SuppressWarnings("unchecked")
private void sendRelaunchEvent() {
ContainersLauncherEventType launcherEvent = ContainersLauncherEventType.RELAUNCH_CONTAINER;
dispatcher.getEventHandler().handle(new ContainersLauncherEvent(this, launcherEvent));
}
Aggregations