public virtual void AppFinished(RMApp app, RMAppState state, long finishedTime) { if (publishSystemMetrics) { dispatcher.GetEventHandler().Handle(new ApplicationFinishedEvent(app.GetApplicationId (), app.GetDiagnostics().ToString(), app.GetFinalApplicationStatus(), RMServerUtils .CreateApplicationState(state), app.GetCurrentAppAttempt() == null ? null : app. GetCurrentAppAttempt().GetAppAttemptId(), finishedTime, app.GetRMAppMetrics())); } }
public virtual void ApplicationFinished(RMApp app, RMAppState finalState) { if (historyServiceEnabled) { dispatcher.GetEventHandler().Handle(new WritingApplicationFinishEvent(app.GetApplicationId (), ApplicationFinishData.NewInstance(app.GetApplicationId(), app.GetFinishTime( ), app.GetDiagnostics().ToString(), app.GetFinalApplicationStatus(), RMServerUtils .CreateApplicationState(finalState)))); } }