@InterfaceAudience.Public @InterfaceStability.Stable public class TaskCompletionEvent extends TaskCompletionEvent
Modifier and Type | Class and Description |
---|---|
static class |
TaskCompletionEvent.Status |
Modifier and Type | Field and Description |
---|---|
static TaskCompletionEvent[] |
EMPTY_ARRAY |
Constructor and Description |
---|
TaskCompletionEvent()
Default constructor for Writable.
|
TaskCompletionEvent(int eventId,
TaskAttemptID taskId,
int idWithinJob,
boolean isMap,
TaskCompletionEvent.Status status,
String taskTrackerHttp)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static TaskCompletionEvent |
downgrade(TaskCompletionEvent event) |
TaskAttemptID |
getTaskAttemptId()
Returns task id.
|
String |
getTaskId()
Deprecated.
use
getTaskAttemptId() instead. |
TaskCompletionEvent.Status |
getTaskStatus()
Returns enum Status.SUCESS or Status.FAILURE.
|
void |
setEventId(int eventId)
set event Id.
|
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. |
void |
setTaskRunTime(int taskCompletionTime)
Set the task completion time
|
void |
setTaskStatus(TaskCompletionEvent.Status status)
Set task status.
|
void |
setTaskTrackerHttp(String taskTrackerHttp)
Set task tracker http location.
|
equals, getEventId, getStatus, getTaskRunTime, getTaskTrackerHttp, hashCode, idWithinJob, isMapTask, readFields, setTaskAttemptId, setTaskStatus, toString, write
public static final TaskCompletionEvent[] EMPTY_ARRAY
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.@InterfaceAudience.Private public static TaskCompletionEvent downgrade(TaskCompletionEvent event)
@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
- @InterfaceAudience.Private public void setTaskStatus(TaskCompletionEvent.Status status)
status
- @InterfaceAudience.Private public void setTaskRunTime(int taskCompletionTime)
setTaskRunTime
in class TaskCompletionEvent
taskCompletionTime
- time (in millisec) the task took to complete@InterfaceAudience.Private public void setEventId(int eventId)
setEventId
in class TaskCompletionEvent
eventId
- @InterfaceAudience.Private public void setTaskTrackerHttp(String taskTrackerHttp)
setTaskTrackerHttp
in class TaskCompletionEvent
taskTrackerHttp
- Copyright © 2014 Apache Software Foundation. All Rights Reserved.