@InterfaceAudience.Private @InterfaceStability.Unstable public class TaskAttemptFinishedEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
TaskAttemptFinishedEvent(TaskAttemptID id,
TaskType taskType,
String taskStatus,
long finishTime,
String rackName,
String hostname,
String state,
Counters counters)
Create an event to record successful finishes for setup and cleanup
attempts
|
| Modifier and Type | Method and Description |
|---|---|
TaskAttemptID |
getAttemptId()
Get the task attempt id
|
Object |
getDatum()
Return the Avro datum wrapped by this.
|
EventType |
getEventType()
Get the event type
|
long |
getFinishTime()
Get the attempt finish time
|
String |
getHostname()
Get the host where the attempt executed
|
String |
getRackName()
Get the rackname where the attempt executed
|
String |
getState()
Get the state string
|
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 TaskAttemptFinishedEvent(TaskAttemptID id, TaskType taskType, String taskStatus, long finishTime, String rackName, String hostname, String state, Counters counters)
id - Attempt IDtaskType - Type of tasktaskStatus - Status of taskfinishTime - Finish time of attempthostname - Host where the attempt executedstate - State stringcounters - Counters for the attemptpublic Object getDatum()
HistoryEventgetDatum in interface HistoryEventpublic void setDatum(Object oDatum)
HistoryEventsetDatum in interface HistoryEventpublic TaskID getTaskId()
public TaskAttemptID getAttemptId()
public TaskType getTaskType()
public String getTaskStatus()
public long getFinishTime()
public String getHostname()
public String getRackName()
public String getState()
public EventType getEventType()
getEventType in interface HistoryEventCopyright © 2016 Apache Software Foundation. All Rights Reserved.