Search in sources :

Example 1 with ContainersLauncherEventType

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));
}
Also used : ContainersLauncherEventType(org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainersLauncherEventType) ContainersLauncherEvent(org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainersLauncherEvent)

Example 2 with ContainersLauncherEventType

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));
}
Also used : ContainersLauncherEventType(org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainersLauncherEventType) ContainersLauncherEvent(org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainersLauncherEvent)

Aggregations

ContainersLauncherEvent (org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainersLauncherEvent)2 ContainersLauncherEventType (org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainersLauncherEventType)2