public class TaskFailedEvent extends Object implements HistoryEvent
构造器和说明 |
---|
TaskFailedEvent(TaskID id,
long finishTime,
TaskType taskType,
String error,
String status,
TaskAttemptID failedDueToAttempt)
Create an event to record task failure
|
限定符和类型 | 方法和说明 |
---|---|
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
|
public TaskFailedEvent(TaskID id, long finishTime, TaskType taskType, String error, String status, TaskAttemptID failedDueToAttempt)
id
- Task IDfinishTime
- Finish time of the tasktaskType
- Type of the taskerror
- Error Stringstatus
- StatusfailedDueToAttempt
- The attempt id due to which the task failedpublic TaskID getTaskId()
public String getError()
public long getFinishTime()
public TaskType getTaskType()
public TaskAttemptID getFailedAttemptID()
public String getTaskStatus()
public EventType getEventType()
getEventType
在接口中 HistoryEvent
Copyright © 2009 The Apache Software Foundation