private static void MergeApplicationAttemptHistoryData(ApplicationAttemptHistoryData historyData, ApplicationAttemptStartData startData) { historyData.SetHost(startData.GetHost()); historyData.SetRPCPort(startData.GetRPCPort()); historyData.SetMasterContainerId(startData.GetMasterContainerId()); }
/// <exception cref="System.IO.IOException"/> public virtual void ApplicationAttemptStarted(ApplicationAttemptStartData appAttemptStart ) { ConcurrentMap <ApplicationAttemptId, ApplicationAttemptHistoryData> subMap = GetSubMap (appAttemptStart.GetApplicationAttemptId().GetApplicationId()); ApplicationAttemptHistoryData oldData = subMap.PutIfAbsent(appAttemptStart.GetApplicationAttemptId (), ApplicationAttemptHistoryData.NewInstance(appAttemptStart.GetApplicationAttemptId (), appAttemptStart.GetHost(), appAttemptStart.GetRPCPort(), appAttemptStart.GetMasterContainerId (), null, null, null, null)); if (oldData != null) { throw new IOException("The start information of application attempt " + appAttemptStart .GetApplicationAttemptId() + " is already stored."); } }