@Override
public synchronized void appShutdownRequested() {
// This can happen if the RM has been restarted. If it is in that state,
// this application must clean itself up.
LOG.info("App shutdown requested by scheduler");
sendEvent(new DAGAppMasterEvent(DAGAppMasterEventType.AM_REBOOT));
}