public static TaskCompletionEvent FromYarn(TaskAttemptCompletionEvent newEvent) { return(new TaskCompletionEvent(newEvent.GetEventId(), FromYarn(newEvent.GetAttemptId ()), newEvent.GetAttemptId().GetId(), newEvent.GetAttemptId().GetTaskId().GetTaskType ().Equals(TaskType.Map), FromYarn(newEvent.GetStatus()), newEvent.GetMapOutputServerAddress ())); }
public JobTaskAttemptCompletedEvent(TaskAttemptCompletionEvent completionEvent) : base(completionEvent.GetAttemptId().GetTaskId().GetJobId(), JobEventType.JobTaskAttemptCompleted ) { this.completionEvent = completionEvent; }