org.apache.hadoop.mapreduce.jobhistory
Class TaskAttemptFinishedEvent

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

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

Event to record successful task completion


Constructor Summary
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
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskAttemptFinishedEvent

public 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

Parameters:
id - Attempt ID
taskType - Type of task
taskStatus - Status of task
finishTime - Finish time of attempt
hostname - Host where the attempt executed
state - State string
counters - Counters for the attempt
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 the task ID


getAttemptId

public TaskAttemptID getAttemptId()
Get the task attempt id


getTaskType

public TaskType getTaskType()
Get the task type


getTaskStatus

public String getTaskStatus()
Get the task status


getFinishTime

public long getFinishTime()
Get the attempt finish time


getHostname

public String getHostname()
Get the host where the attempt executed


getRackName

public String getRackName()
Get the rackname where the attempt executed


getState

public String getState()
Get the state string


getEventType

public EventType getEventType()
Get the event type

Specified by:
getEventType in interface HistoryEvent


Copyright © 2013 Apache Software Foundation. All Rights Reserved.