Class TaskReport

java.lang.Object
org.apache.hadoop.mapreduce.TaskReport
org.apache.hadoop.mapred.TaskReport
All Implemented Interfaces:
Writable

@Public @Stable public class TaskReport extends org.apache.hadoop.mapreduce.TaskReport
A report on the state of a task.
  • Constructor Details

    • TaskReport

      public TaskReport()
  • Method Details

    • getTaskId

      public String getTaskId()
      The string of the task id.
      Overrides:
      getTaskId in class org.apache.hadoop.mapreduce.TaskReport
    • getTaskID

      public TaskID getTaskID()
      The id of the task.
      Overrides:
      getTaskID in class org.apache.hadoop.mapreduce.TaskReport
    • getCounters

      public Counters getCounters()
    • setSuccessfulAttempt

      public void setSuccessfulAttempt(TaskAttemptID t)
      set successful attempt ID of the task.
    • getSuccessfulTaskAttempt

      public TaskAttemptID getSuccessfulTaskAttempt()
      Get the attempt ID that took this task to completion
    • setRunningTaskAttempts

      public void setRunningTaskAttempts(Collection<TaskAttemptID> runningAttempts)
      set running attempt(s) of the task.
    • getRunningTaskAttempts

      public Collection<TaskAttemptID> getRunningTaskAttempts()
      Get the running task attempt IDs for this task
    • setFinishTime

      protected void setFinishTime(long finishTime)
      set finish time of task.
      Overrides:
      setFinishTime in class org.apache.hadoop.mapreduce.TaskReport
      Parameters:
      finishTime - finish time of task.
    • setStartTime

      protected void setStartTime(long startTime)
      set start time of the task.
      Overrides:
      setStartTime in class org.apache.hadoop.mapreduce.TaskReport