org.apache.hadoop.mapreduce.jobhistory
Class ReduceAttemptFinishedEvent

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

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

Event to record successful completion of a reduce attempt


Constructor Summary
ReduceAttemptFinishedEvent(TaskAttemptID id, TaskType taskType, String taskStatus, long shuffleFinishTime, long sortFinishTime, long finishTime, String hostname, int port, String rackName, String state, Counters counters, int[][] allSplits)
          Create an event to record completion of a reduce attempt
ReduceAttemptFinishedEvent(TaskAttemptID id, TaskType taskType, String taskStatus, long shuffleFinishTime, long sortFinishTime, long finishTime, String hostname, String state, Counters counters)
          Deprecated. please use the constructor with an additional argument, an array of splits arrays instead. See ProgressSplitsBlock for an explanation of the meaning of that parameter. Create an event to record completion of a reduce attempt
 
Method Summary
 TaskAttemptID getAttemptId()
          Get the attempt id
 int[] getClockSplits()
           
 int[] getCpuUsages()
           
 Object getDatum()
          Return the Avro datum wrapped by this.
 EventType getEventType()
          Get the event type
 long getFinishTime()
          Get the finish time of the attempt
 String getHostname()
          Get the name of the host where the attempt ran
 int[] getPhysMemKbytes()
           
 int getPort()
          Get the tracker rpc port
 String getRackName()
          Get the rack name of the node where the attempt ran
 long getShuffleFinishTime()
          Get the finish time of the shuffle phase
 long getSortFinishTime()
          Get the finish time of the sort phase
 String getState()
          Get the state string
 TaskID getTaskId()
          Get the Task ID
 String getTaskStatus()
          Get the task status
 TaskType getTaskType()
          Get the task type
 int[] getVMemKbytes()
           
 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

ReduceAttemptFinishedEvent

public ReduceAttemptFinishedEvent(TaskAttemptID id,
                                  TaskType taskType,
                                  String taskStatus,
                                  long shuffleFinishTime,
                                  long sortFinishTime,
                                  long finishTime,
                                  String hostname,
                                  int port,
                                  String rackName,
                                  String state,
                                  Counters counters,
                                  int[][] allSplits)
Create an event to record completion of a reduce attempt

Parameters:
id - Attempt Id
taskType - Type of task
taskStatus - Status of the task
shuffleFinishTime - Finish time of the shuffle phase
sortFinishTime - Finish time of the sort phase
finishTime - Finish time of the attempt
hostname - Name of the host where the attempt executed
port - RPC port for the tracker host.
rackName - Name of the rack where the attempt executed
state - State of the attempt
counters - Counters for the attempt
allSplits - the "splits", or a pixelated graph of various measurable worker node state variables against progress. Currently there are four; wallclock time, CPU time, virtual memory and physical memory.

ReduceAttemptFinishedEvent

public ReduceAttemptFinishedEvent(TaskAttemptID id,
                                  TaskType taskType,
                                  String taskStatus,
                                  long shuffleFinishTime,
                                  long sortFinishTime,
                                  long finishTime,
                                  String hostname,
                                  String state,
                                  Counters counters)
Deprecated. please use the constructor with an additional argument, an array of splits arrays instead. See ProgressSplitsBlock for an explanation of the meaning of that parameter. Create an event to record completion of a reduce attempt

Parameters:
id - Attempt Id
taskType - Type of task
taskStatus - Status of the task
shuffleFinishTime - Finish time of the shuffle phase
sortFinishTime - Finish time of the sort phase
finishTime - Finish time of the attempt
hostname - Name of the host where the attempt executed
state - State of the attempt
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 attempt id


getTaskType

public TaskType getTaskType()
Get the task type


getTaskStatus

public String getTaskStatus()
Get the task status


getSortFinishTime

public long getSortFinishTime()
Get the finish time of the sort phase


getShuffleFinishTime

public long getShuffleFinishTime()
Get the finish time of the shuffle phase


getFinishTime

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


getHostname

public String getHostname()
Get the name of the host where the attempt ran


getPort

public int getPort()
Get the tracker rpc port


getRackName

public String getRackName()
Get the rack name of the node where the attempt ran


getState

public String getState()
Get the state string


getEventType

public EventType getEventType()
Get the event type

Specified by:
getEventType in interface HistoryEvent

getClockSplits

public int[] getClockSplits()

getCpuUsages

public int[] getCpuUsages()

getVMemKbytes

public int[] getVMemKbytes()

getPhysMemKbytes

public int[] getPhysMemKbytes()


Copyright © 2013 Apache Software Foundation. All Rights Reserved.