org.apache.hadoop.mapreduce.jobhistory
Class TaskFailedEvent

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

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

Event to record the failure of a task


Constructor Summary
TaskFailedEvent(TaskID id, long finishTime, TaskType taskType, String error, String status, TaskAttemptID failedDueToAttempt)
          Create an event to record task failure
 
Method Summary
 Object getDatum()
          Return the Avro datum wrapped by this.
 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
 void setDatum(Object datum)
          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

TaskFailedEvent

public TaskFailedEvent(TaskID id,
                       long finishTime,
                       TaskType taskType,
                       String error,
                       String status,
                       TaskAttemptID failedDueToAttempt)
Create an event to record task failure

Parameters:
id - Task ID
finishTime - Finish time of the task
taskType - Type of the task
error - Error String
status - Status
failedDueToAttempt - The attempt id due to which the task failed
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 datum)
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


getError

public String getError()
Get the error string


getFinishTime

public long getFinishTime()
Get the finish time of the attempt


getTaskType

public TaskType getTaskType()
Get the task type


getFailedAttemptID

public TaskAttemptID getFailedAttemptID()
Get the attempt id due to which the task failed


getTaskStatus

public String getTaskStatus()
Get the task status


getEventType

public EventType getEventType()
Get the event type

Specified by:
getEventType in interface HistoryEvent


Copyright © 2012 Apache Software Foundation. All Rights Reserved.