|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.jobhistory.TaskFailedEvent
@InterfaceAudience.Private @InterfaceStability.Unstable public class TaskFailedEvent
Event to record the failure of a task
| Constructor Summary | |
|---|---|
TaskFailedEvent(TaskID id,
long finishTime,
TaskType taskType,
String error,
String status,
TaskAttemptID failedDueToAttempt)
|
|
TaskFailedEvent(TaskID id,
long finishTime,
TaskType taskType,
String error,
String status,
TaskAttemptID failedDueToAttempt,
Counters counters)
Create an event to record task failure |
|
| Method Summary | |
|---|---|
Counters |
getCounters()
Get task counters |
Object |
getDatum()
Return the Avro datum wrapped by this. |
String |
getError()
Get the error string |
EventType |
getEventType()
Get the event type |
TaskAttemptID |
getFailedAttemptID()
Get the attempt id due to which the task failed |
long |
getFinishTime()
Get the finish time of the attempt |
TaskID |
getTaskId()
Get the task id |
String |
getTaskStatus()
Get the task status |
TaskType |
getTaskType()
Get the task type |
void |
setDatum(Object odatum)
Set the Avro datum wrapped by this. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskFailedEvent(TaskID id,
long finishTime,
TaskType taskType,
String error,
String status,
TaskAttemptID failedDueToAttempt,
Counters counters)
id - Task IDfinishTime - Finish time of the tasktaskType - Type of the taskerror - Error Stringstatus - StatusfailedDueToAttempt - The attempt id due to which the task failedcounters - Counters for the task
public TaskFailedEvent(TaskID id,
long finishTime,
TaskType taskType,
String error,
String status,
TaskAttemptID failedDueToAttempt)
| Method Detail |
|---|
public Object getDatum()
HistoryEvent
getDatum in interface HistoryEventpublic void setDatum(Object odatum)
HistoryEvent
setDatum in interface HistoryEventpublic TaskID getTaskId()
public String getError()
public long getFinishTime()
public TaskType getTaskType()
public TaskAttemptID getFailedAttemptID()
public String getTaskStatus()
public Counters getCounters()
public EventType getEventType()
getEventType in interface HistoryEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||