org.apache.hadoop.tools.rumen
Class ParsedTask

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

public class ParsedTask
extends LoggedTask

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


Method Summary
 void incorporateCounters(org.apache.hadoop.mapreduce.jobhistory.JhCounters counters)
           
 Map<String,Long> obtainCounters()
           
 String obtainDiagnosticInfo()
           
 String obtainFailedDueToAttemptId()
           
 void putCounters(Map<String,Long> counters)
          Set the task counters
 void putDiagnosticInfo(String msg)
          Set the task diagnostic-info
 void putFailedDueToAttemptId(String attempt)
          Set the failed-due-to-attemptId info of this task.
 
Methods inherited from class org.apache.hadoop.tools.rumen.LoggedTask
deepCompare, getAttempts, getFinishTime, getInputBytes, getInputRecords, getOutputBytes, getOutputRecords, getPreferredLocations, getStartTime, getTaskID, getTaskStatus, getTaskType, 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)
Overrides:
incorporateCounters in class LoggedTask

putCounters

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


obtainCounters

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

putDiagnosticInfo

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


obtainDiagnosticInfo

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

putFailedDueToAttemptId

public void putFailedDueToAttemptId(String attempt)
Set the failed-due-to-attemptId info of this task.


obtainFailedDueToAttemptId

public String obtainFailedDueToAttemptId()
Returns:
the failed-due-to-attemptId info of this task. If the task is successful, returns null.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.