Package org.apache.hadoop.mapred
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the running task attempt IDs for this taskGet the attempt ID that took this task to completionThe string of the task id.The id of the task.protected voidsetFinishTime(long finishTime) set finish time of task.voidsetRunningTaskAttempts(Collection<TaskAttemptID> runningAttempts) set running attempt(s) of the task.protected voidsetStartTime(long startTime) set start time of the task.voidset successful attempt ID of the task.Methods inherited from class org.apache.hadoop.mapreduce.TaskReport
equals, getCurrentStatus, getDiagnostics, getFinishTime, getProgress, getRunningTaskAttemptIds, getStartTime, getState, getSuccessfulTaskAttemptId, getTaskCounters, hashCode, readFields, setRunningTaskAttemptIds, setSuccessfulAttemptId, write
-
Constructor Details
-
TaskReport
public TaskReport()
-
-
Method Details
-
getTaskId
The string of the task id.- Overrides:
getTaskIdin classorg.apache.hadoop.mapreduce.TaskReport
-
getTaskID
The id of the task.- Overrides:
getTaskIDin classorg.apache.hadoop.mapreduce.TaskReport
-
getCounters
-
setSuccessfulAttempt
set successful attempt ID of the task. -
getSuccessfulTaskAttempt
Get the attempt ID that took this task to completion -
setRunningTaskAttempts
set running attempt(s) of the task. -
getRunningTaskAttempts
Get the running task attempt IDs for this task -
setFinishTime
protected void setFinishTime(long finishTime) set finish time of task.- Overrides:
setFinishTimein classorg.apache.hadoop.mapreduce.TaskReport- Parameters:
finishTime- finish time of task.
-
setStartTime
protected void setStartTime(long startTime) set start time of the task.- Overrides:
setStartTimein classorg.apache.hadoop.mapreduce.TaskReport
-