Ejemplo n.º 1
0
 public virtual void Progressing(TaskAttemptId attemptID)
 {
     //only put for the registered attempts
     //TODO throw an exception if the task isn't registered.
     TaskHeartbeatHandler.ReportTime time = runningAttempts[attemptID];
     if (time != null)
     {
         time.SetLastProgress(clock.GetTime());
     }
 }
Ejemplo n.º 2
0
 public virtual void Register(TaskAttemptId attemptID)
 {
     runningAttempts[attemptID] = new TaskHeartbeatHandler.ReportTime(clock.GetTime());
 }