@InterfaceAudience.Private @InterfaceStability.Unstable public class TaskFinishedEvent extends Object implements HistoryEvent
Constructor and Description |
---|
TaskFinishedEvent(TaskID id,
TaskAttemptID attemptId,
long finishTime,
TaskType taskType,
String status,
Counters counters)
Create an event to record the successful completion of a task
|
Modifier and Type | Method and Description |
---|---|
Counters |
getCounters()
Get task counters
|
Object |
getDatum()
Return the Avro datum wrapped by this.
|
EventType |
getEventType()
Get event type
|
long |
getFinishTime()
Get the task finish time
|
TaskAttemptID |
getSuccessfulTaskAttemptId()
Get successful task attempt id
|
TaskID |
getTaskId()
Get task id
|
String |
getTaskStatus()
Get task status
|
TaskType |
getTaskType()
Get task type
|
void |
setDatum(Object oDatum)
Set the Avro datum wrapped by this.
|
public TaskFinishedEvent(TaskID id, TaskAttemptID attemptId, long finishTime, TaskType taskType, String status, Counters counters)
id
- Task IDattemptId
- Task Attempt ID of the successful attempt for this taskfinishTime
- Finish time of the tasktaskType
- Type of the taskstatus
- Status stringcounters
- Counters for the taskpublic Object getDatum()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object oDatum)
HistoryEvent
setDatum
in interface HistoryEvent
public TaskID getTaskId()
public TaskAttemptID getSuccessfulTaskAttemptId()
public long getFinishTime()
public Counters getCounters()
public TaskType getTaskType()
public String getTaskStatus()
public EventType getEventType()
getEventType
in interface HistoryEvent
Copyright © 2017 Apache Software Foundation. All Rights Reserved.