org.apache.hadoop.tools.rumen
Class LoggedTask

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

public class LoggedTask
extends Object
implements DeepCompare

A LoggedTask represents a [hadoop] task that is part of a hadoop job. It knows about the [pssibly empty] sequence of attempts, its I/O footprint, and its runtime. All of the public methods are simply accessors for the instance variables we want to write out in the JSON files.


Method Summary
 void deepCompare(DeepCompare comparand, TreePath loc)
           
 List<LoggedTaskAttempt> getAttempts()
           
 long getFinishTime()
           
 long getInputBytes()
           
 long getInputRecords()
           
 long getOutputBytes()
           
 long getOutputRecords()
           
 List<LoggedLocation> getPreferredLocations()
           
 long getStartTime()
           
 String getTaskID()
           
 Pre21JobHistoryConstants.Values getTaskStatus()
           
 Pre21JobHistoryConstants.Values getTaskType()
           
 void incorporateCounters(org.apache.hadoop.mapreduce.jobhistory.JhCounters counters)
           
 void setUnknownAttribute(String attributeName, Object ignored)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setUnknownAttribute

public void setUnknownAttribute(String attributeName,
                                Object ignored)

getInputBytes

public long getInputBytes()

getInputRecords

public long getInputRecords()

getOutputBytes

public long getOutputBytes()

getOutputRecords

public long getOutputRecords()

getTaskID

public String getTaskID()

getStartTime

public long getStartTime()

getFinishTime

public long getFinishTime()

getAttempts

public List<LoggedTaskAttempt> getAttempts()

getPreferredLocations

public List<LoggedLocation> getPreferredLocations()

getTaskStatus

public Pre21JobHistoryConstants.Values getTaskStatus()

getTaskType

public Pre21JobHistoryConstants.Values getTaskType()

incorporateCounters

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

deepCompare

public void deepCompare(DeepCompare comparand,
                        TreePath loc)
                 throws DeepInequalityException
Specified by:
deepCompare in interface DeepCompare
Parameters:
comparand - the other comparand that's being compared to me
loc - the path that got to me. In the root, myLocation is null. To process the scalar foo field of the root we will make a recursive call with a TreePath whose fieldName is "bar" and whose index is -1 and whose parent is null. To process the plural bar field of the root we will make a recursive call with a TreePath whose fieldName is "foo" and whose index is -1 and whose parent is also null.
Throws:
DeepInequalityException


Copyright © 2009 The Apache Software Foundation