final HistoryEventHandler historyHandler = appContext.getHistoryHandler();
ContainerStoppedEvent lEvt = new ContainerStoppedEvent(containerId,
clock.getTime(),
exitStatus,
appContext.getApplicationAttemptId());
historyHandler.handle(
new DAGHistoryEvent(appContext.getCurrentDAGID(),lEvt));
}
protected void deAllocate() {
sendEvent(new AMSchedulerEventDeallocateContainer(containerId));