org.apache.hadoop.mapreduce.jobhistory
Class TaskStartedEvent

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

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

Event to record the start of a task


Constructor Summary
TaskStartedEvent(TaskID id, long startTime, TaskType taskType, String splitLocations)
          Create an event to record start of a task
 
Method Summary
 Object getDatum()
          Return the Avro datum wrapped by this.
 EventType getEventType()
          Get the event type
 String getSplitLocations()
          Get the split locations, applicable for map tasks
 long getStartTime()
          Get the start time of the task
 TaskID getTaskId()
          Get the task id
 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

TaskStartedEvent

public TaskStartedEvent(TaskID id,
                        long startTime,
                        TaskType taskType,
                        String splitLocations)
Create an event to record start of a task

Parameters:
id - Task Id
startTime - Start time of the task
taskType - Type of the task
splitLocations - Split locations, applicable for map tasks
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


getSplitLocations

public String getSplitLocations()
Get the split locations, applicable for map tasks


getStartTime

public long getStartTime()
Get the start time of the task


getTaskType

public TaskType getTaskType()
Get the task type


getEventType

public EventType getEventType()
Get the event type

Specified by:
getEventType in interface HistoryEvent


Copyright © 2013 Apache Software Foundation. All Rights Reserved.