Ejemplo n.º 1
0
 private void HandleMapAttemptFinishedEvent(MapAttemptFinishedEvent @event)
 {
     JobHistoryParser.TaskInfo        taskInfo    = info.tasksMap[@event.GetTaskId()];
     JobHistoryParser.TaskAttemptInfo attemptInfo = taskInfo.attemptsMap[@event.GetAttemptId
                                                                             ()];
     attemptInfo.finishTime    = @event.GetFinishTime();
     attemptInfo.status        = StringInterner.WeakIntern(@event.GetTaskStatus());
     attemptInfo.state         = StringInterner.WeakIntern(@event.GetState());
     attemptInfo.mapFinishTime = @event.GetMapFinishTime();
     attemptInfo.counters      = @event.GetCounters();
     attemptInfo.hostname      = StringInterner.WeakIntern(@event.GetHostname());
     attemptInfo.port          = @event.GetPort();
     attemptInfo.rackname      = StringInterner.WeakIntern(@event.GetRackName());
     info.completedTaskAttemptsMap[@event.GetAttemptId()] = attemptInfo;
 }