@InterfaceAudience.Private @InterfaceStability.Evolving public class TaskReport extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
TaskReport() |
TaskReport(TaskID taskid,
float progress,
String state,
String[] diagnostics,
TIPStatus currentStatus,
long startTime,
long finishTime,
Counters counters)
Creates a new TaskReport object
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
TIPStatus |
getCurrentStatus()
The current status
|
String[] |
getDiagnostics()
A list of error messages.
|
long |
getFinishTime()
Get finish time of task.
|
float |
getProgress()
The amount completed, between zero and one.
|
Collection<TaskAttemptID> |
getRunningTaskAttemptIds()
Get the running task attempt IDs for this task
|
long |
getStartTime()
Get start time of task.
|
String |
getState()
The most recent state, reported by the Reporter.
|
TaskAttemptID |
getSuccessfulTaskAttemptId()
Get the attempt ID that took this task to completion
|
Counters |
getTaskCounters()
A table of counters.
|
String |
getTaskId()
The string of the task ID.
|
TaskID |
getTaskID()
The ID of the task.
|
int |
hashCode() |
void |
readFields(DataInput in) |
protected void |
setFinishTime(long finishTime)
set finish time of task.
|
protected void |
setRunningTaskAttemptIds(Collection<TaskAttemptID> runningAttempts)
set running attempt(s) of the task.
|
protected void |
setStartTime(long startTime)
set start time of the task.
|
protected void |
setSuccessfulAttemptId(TaskAttemptID t)
set successful attempt ID of the task.
|
void |
write(DataOutput out) |
public TaskReport()
public TaskReport(TaskID taskid, float progress, String state, String[] diagnostics, TIPStatus currentStatus, long startTime, long finishTime, Counters counters)
taskid
- progress
- state
- diagnostics
- currentStatus
- startTime
- finishTime
- counters
- public String getTaskId()
public TaskID getTaskID()
public float getProgress()
public String getState()
public String[] getDiagnostics()
public Counters getTaskCounters()
public TIPStatus getCurrentStatus()
public long getFinishTime()
protected void setFinishTime(long finishTime)
finishTime
- finish time of task.public long getStartTime()
protected void setStartTime(long startTime)
protected void setSuccessfulAttemptId(TaskAttemptID t)
public TaskAttemptID getSuccessfulTaskAttemptId()
protected void setRunningTaskAttemptIds(Collection<TaskAttemptID> runningAttempts)
public Collection<TaskAttemptID> getRunningTaskAttemptIds()
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.