org.apache.hadoop.tools.rumen
Class ParsedTaskAttempt

java.lang.Object
  extended by org.apache.hadoop.tools.rumen.LoggedTaskAttempt
      extended by org.apache.hadoop.tools.rumen.ParsedTaskAttempt
All Implemented Interfaces:
DeepCompare

public class ParsedTaskAttempt
extends LoggedTaskAttempt

This is a wrapper class around LoggedTaskAttempt. This provides also the extra information about the task attempt obtained from job history which is not written to the JSON trace file.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.tools.rumen.LoggedTaskAttempt
LoggedTaskAttempt.SplitVectorKind
 
Method Summary
 void incorporateCounters(org.apache.hadoop.mapreduce.jobhistory.JhCounters counters)
          incorporate event counters
 Map<String,Long> obtainCounters()
           
 String obtainDiagnosticInfo()
           
 Integer obtainHttpPort()
           
 Integer obtainShufflePort()
           
 String obtainTrackerName()
           
 void putCounters(Map<String,Long> counters)
          Set the task attempt counters
 void putDiagnosticInfo(String msg)
          Set the task attempt diagnostic-info
 
Methods inherited from class org.apache.hadoop.tools.rumen.LoggedTaskAttempt
allSplitVectors, deepCompare, getAttemptID, getClockSplits, getCombineInputRecords, getCpuUsages, getFileBytesRead, getFileBytesWritten, getFinishTime, getHdfsBytesRead, getHdfsBytesWritten, getHostName, getLocation, getMapInputBytes, getMapInputRecords, getMapOutputBytes, getMapOutputRecords, getPhysMemKbytes, getReduceInputGroups, getReduceInputRecords, getReduceOutputRecords, getReduceShuffleBytes, getResourceUsageMetrics, getResult, getShuffleFinished, getSortFinished, getSpilledRecords, getStartTime, getVMemKbytes, setUnknownAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

incorporateCounters

public void incorporateCounters(org.apache.hadoop.mapreduce.jobhistory.JhCounters counters)
incorporate event counters

Overrides:
incorporateCounters in class LoggedTaskAttempt

putCounters

public void putCounters(Map<String,Long> counters)
Set the task attempt counters


obtainCounters

public Map<String,Long> obtainCounters()
Returns:
the task attempt counters

putDiagnosticInfo

public void putDiagnosticInfo(String msg)
Set the task attempt diagnostic-info


obtainDiagnosticInfo

public String obtainDiagnosticInfo()
Returns:
the diagnostic-info of this task attempt. If the attempt is successful, returns null.

obtainTrackerName

public String obtainTrackerName()

obtainHttpPort

public Integer obtainHttpPort()
Returns:
http port if set. Returns null otherwise.

obtainShufflePort

public Integer obtainShufflePort()
Returns:
shuffle port if set. Returns null otherwise.


Copyright © 2012 Apache Software Foundation. All Rights Reserved.