|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.TaskCompletionEvent
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,
String taskId,
int idWithinJob,
boolean isMap,
TaskCompletionEvent.Status status,
String taskTrackerHttp)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getEventId()
Returns event Id. |
String |
getTaskId()
Returns task id. |
TaskCompletionEvent.Status |
getTaskStatus()
Returns enum Status.SUCESS or Status.FAILURE. |
String |
getTaskTrackerHttp()
http location of the tasktracker where this task ran. |
int |
idWithinJob()
|
boolean |
isMapTask()
|
void |
readFields(DataInput in)
Reads the fields of this object from in. |
void |
setEventId(int eventId)
set event Id. |
void |
setTaskId(String taskId)
Sets task id. |
void |
setTaskStatus(TaskCompletionEvent.Status status)
Set task status. |
void |
setTaskTrackerHttp(String taskTrackerHttp)
Set task tracker http location. |
String |
toString()
|
void |
write(DataOutput out)
Writes the fields of this object to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final TaskCompletionEvent[] EMPTY_ARRAY
| Constructor Detail |
|---|
public TaskCompletionEvent()
public TaskCompletionEvent(int eventId,
String 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 |
|---|
public int getEventId()
public String getTaskId()
public TaskCompletionEvent.Status getTaskStatus()
public String getTaskTrackerHttp()
public void setEventId(int eventId)
eventId - public void setTaskId(String taskId)
taskId - public void setTaskStatus(TaskCompletionEvent.Status status)
status - public void setTaskTrackerHttp(String taskTrackerHttp)
taskTrackerHttp - public String toString()
toString in class Objectpublic boolean isMapTask()
public int idWithinJob()
public void write(DataOutput out)
throws IOException
Writableout.
write in interface WritableIOException
public void readFields(DataInput in)
throws IOException
Writablein. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields in interface WritableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||