public virtual void AppAttemptFinished(RMAppAttempt appAttempt, RMAppAttemptState appAttemtpState, RMApp app, long finishedTime) { if (publishSystemMetrics) { dispatcher.GetEventHandler().Handle(new AppAttemptFinishedEvent(appAttempt.GetAppAttemptId (), appAttempt.GetTrackingUrl(), appAttempt.GetOriginalTrackingUrl(), appAttempt .GetDiagnostics(), app.GetFinalApplicationStatus(), RMServerUtils.CreateApplicationAttemptState (appAttemtpState), finishedTime)); } }
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 ApplicationAttemptFinished(RMAppAttempt appAttempt, RMAppAttemptState finalState) { if (historyServiceEnabled) { dispatcher.GetEventHandler().Handle(new WritingApplicationAttemptFinishEvent(appAttempt .GetAppAttemptId(), ApplicationAttemptFinishData.NewInstance(appAttempt.GetAppAttemptId (), appAttempt.GetDiagnostics().ToString(), appAttempt.GetTrackingUrl(), appAttempt .GetFinalApplicationStatus(), RMServerUtils.CreateApplicationAttemptState(finalState )))); } }