@InterfaceAudience.Private @InterfaceStability.Unstable public class TaskFailedEvent extends Object implements HistoryEvent
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 taskpublic TaskFailedEvent(TaskID id, long finishTime, TaskType taskType, String error, String status, TaskAttemptID failedDueToAttempt)
public Object getDatum()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object odatum)
HistoryEvent
setDatum
in interface HistoryEvent
public 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
Copyright © 2017 Apache Software Foundation. All Rights Reserved.