org.apache.hadoop.mapreduce.jobhistory
Class TaskFinishedEvent

java.lang.Object
  extended by org.apache.hadoop.mapreduce.jobhistory.TaskFinishedEvent
All Implemented Interfaces:
HistoryEvent

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class TaskFinishedEvent
extends Object
implements HistoryEvent

Event to record the successful completion of a task


Constructor Summary
TaskFinishedEvent(TaskID id, TaskAttemptID attemptId, long finishTime, TaskType taskType, String status, Counters counters)
          Create an event to record the successful completion of a task
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskFinishedEvent

public TaskFinishedEvent(TaskID id,
                         TaskAttemptID attemptId,
                         long finishTime,
                         TaskType taskType,
                         String status,
                         Counters counters)
Create an event to record the successful completion of a task

Parameters:
id - Task ID
attemptId - Task Attempt ID of the successful attempt for this task
finishTime - Finish time of the task
taskType - Type of the task
status - Status string
counters - Counters for the task
Method Detail

getDatum

public Object getDatum()
Description copied from interface: HistoryEvent
Return the Avro datum wrapped by this.

Specified by:
getDatum in interface HistoryEvent

setDatum

public void setDatum(Object oDatum)
Description copied from interface: HistoryEvent
Set the Avro datum wrapped by this.

Specified by:
setDatum in interface HistoryEvent

getTaskId

public TaskID getTaskId()
Get task id


getSuccessfulTaskAttemptId

public TaskAttemptID getSuccessfulTaskAttemptId()
Get successful task attempt id


getFinishTime

public long getFinishTime()
Get the task finish time


getCounters

public Counters getCounters()
Get task counters


getTaskType

public TaskType getTaskType()
Get task type


getTaskStatus

public String getTaskStatus()
Get task status


getEventType

public EventType getEventType()
Get event type

Specified by:
getEventType in interface HistoryEvent


Copyright © 2013 Apache Software Foundation. All Rights Reserved.