|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.TaskCompletionEvent org.apache.hadoop.mapred.TaskCompletionEvent
@InterfaceAudience.Public @InterfaceStability.Stable public class TaskCompletionEvent
This is used to track task completion events on job tracker.
Nested Class Summary | |
---|---|
static class |
TaskCompletionEvent.Status
|
Field Summary | |
---|---|
static TaskCompletionEvent[] |
EMPTY_ARRAY
|
Constructor Summary | |
---|---|
TaskCompletionEvent()
Default constructor for Writable. |
|
TaskCompletionEvent(int eventId,
TaskAttemptID taskId,
int idWithinJob,
boolean isMap,
TaskCompletionEvent.Status status,
String taskTrackerHttp)
Constructor. |
Method Summary | |
---|---|
TaskAttemptID |
getTaskAttemptId()
Returns task id. |
String |
getTaskId()
Deprecated. use getTaskAttemptId() instead. |
TaskCompletionEvent.Status |
getTaskStatus()
Returns enum Status.SUCESS or Status.FAILURE. |
protected void |
setTaskAttemptId(TaskAttemptID taskId)
Sets task id. |
void |
setTaskId(String taskId)
Deprecated. use setTaskAttemptId(TaskAttemptID) instead. |
void |
setTaskID(TaskAttemptID taskId)
Deprecated. use setTaskAttemptId(TaskAttemptID) instead. |
Methods inherited from class org.apache.hadoop.mapreduce.TaskCompletionEvent |
---|
equals, getEventId, getStatus, getTaskRunTime, getTaskTrackerHttp, hashCode, idWithinJob, isMapTask, readFields, setTaskAttemptId, setTaskStatus, toString, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TaskCompletionEvent[] EMPTY_ARRAY
Constructor Detail |
---|
public TaskCompletionEvent()
public TaskCompletionEvent(int eventId, TaskAttemptID taskId, int idWithinJob, boolean isMap, TaskCompletionEvent.Status status, String taskTrackerHttp)
eventId
- event id, event id should be unique and assigned in
incrementally, starting from 0.taskId
- task idstatus
- task's statustaskTrackerHttp
- task tracker's host:port for http.Method Detail |
---|
@Deprecated public String getTaskId()
getTaskAttemptId()
instead.
public TaskAttemptID getTaskAttemptId()
getTaskAttemptId
in class TaskCompletionEvent
public TaskCompletionEvent.Status getTaskStatus()
@Deprecated public void setTaskId(String taskId)
setTaskAttemptId(TaskAttemptID)
instead.
taskId
- @Deprecated public void setTaskID(TaskAttemptID taskId)
setTaskAttemptId(TaskAttemptID)
instead.
taskId
- protected void setTaskAttemptId(TaskAttemptID taskId)
taskId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |