@Override @SuppressWarnings("unchecked") public void transition(ContainerImpl container, ContainerEvent event) { container.metrics.releaseContainer(container.resource); container.sendFinishedEvents(); //if the current state is NEW it means the CONTAINER_INIT was never // sent for the event, thus no need to send the CONTAINER_STOP if (container.getCurrentState() != org.apache.hadoop.yarn.api.records.ContainerState.NEW) { container.dispatcher.getEventHandler().handle(new AuxServicesEvent (AuxServicesEventType.CONTAINER_STOP, container)); } container.context.getNodeStatusUpdater().sendOutofBandHeartBeat(); } }
@Override @SuppressWarnings("unchecked") public void transition(ContainerImpl container, ContainerEvent event) { container.metrics.releaseContainer(container.resource); container.sendFinishedEvents(); //if the current state is NEW it means the CONTAINER_INIT was never // sent for the event, thus no need to send the CONTAINER_STOP if (container.getCurrentState() != org.apache.hadoop.yarn.api.records.ContainerState.NEW) { container.dispatcher.getEventHandler().handle(new AuxServicesEvent (AuxServicesEventType.CONTAINER_STOP, container)); } container.context.getNodeStatusUpdater().sendOutofBandHeartBeat(); } }
@Override @SuppressWarnings("unchecked") public void transition(ContainerImpl container, ContainerEvent event) { container.metrics.releaseContainer(container.resource); container.sendFinishedEvents(); //if the current state is NEW it means the CONTAINER_INIT was never // sent for the event, thus no need to send the CONTAINER_STOP if (container.getCurrentState() != org.apache.hadoop.yarn.api.records.ContainerState.NEW) { container.dispatcher.getEventHandler().handle(new AuxServicesEvent (AuxServicesEventType.CONTAINER_STOP, container)); } container.context.getNodeStatusUpdater().sendOutofBandHeartBeat(); } }
public void init(AMRMProxyApplicationContext applicationContext) { super.init(applicationContext); initLocal(applicationContext.getNMCotext().getNodeStatusUpdater() .getRMIdentifier(), applicationContext.getApplicationAttemptId(), applicationContext.getNMCotext().getContainerAllocator(), applicationContext.getNMCotext().getNMTokenSecretManager(), applicationContext.getUser()); }
@Override @SuppressWarnings("unchecked") public void transition(ContainerImpl container, ContainerEvent event) { container.metrics.releaseContainer( container.containerTokenIdentifier.getResource()); if (container.containerMetrics != null) { container.containerMetrics .recordFinishTimeAndExitCode(clock.getTime(), container.exitCode); container.containerMetrics.finished(); } container.sendFinishedEvents(); // if the current state is NEW it means the CONTAINER_INIT was never // sent for the event, thus no need to send the CONTAINER_STOP if (container.getCurrentState() != org.apache.hadoop.yarn.api.records.ContainerState.NEW) { container.dispatcher.getEventHandler().handle(new AuxServicesEvent (AuxServicesEventType.CONTAINER_STOP, container)); } container.context.getNodeStatusUpdater().sendOutofBandHeartBeat(); } }
e.getMessage())); context.getNodeStatusUpdater().reportException(e); return ret; } catch (Throwable e) {
e.getMessage())); getContext().getNodeStatusUpdater().reportException(e); return ret; } catch (Throwable e) {