org.apache.hadoop.vaidya.statistics.job
Class JobStatistics

java.lang.Object
  extended by org.apache.hadoop.vaidya.statistics.job.JobStatistics
All Implemented Interfaces:
JobStatisticsInterface

public class JobStatistics
extends Object
implements JobStatisticsInterface


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.vaidya.statistics.job.JobStatisticsInterface
JobStatisticsInterface.JobKeys, JobStatisticsInterface.KeyDataType, JobStatisticsInterface.MapTaskKeys, JobStatisticsInterface.ReduceTaskKeys
 
Constructor Summary
JobStatistics(JobConf jobConf, JobHistoryParser.JobInfo jobInfo)
           
 
Method Summary
 double getDoubleValue(Enum key)
           
 JobConf getJobConf()
          Get job configuration (job.xml) values
 long getLongValue(Enum key)
           
 ArrayList<MapTaskStatistics> getMapTaskList(Enum mapTaskSortKey, JobStatisticsInterface.KeyDataType dataType)
           
 ArrayList<ReduceTaskStatistics> getReduceTaskList(Enum reduceTaskSortKey, JobStatisticsInterface.KeyDataType dataType)
           
 String getStringValue(Enum key)
           
 void printJobExecutionStatistics()
           
 void setValue(Enum key, double value)
           
 void setValue(Enum key, long value)
           
 void setValue(Enum key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobStatistics

public JobStatistics(JobConf jobConf,
                     JobHistoryParser.JobInfo jobInfo)
              throws ParseException
Throws:
ParseException
Method Detail

getJobConf

public JobConf getJobConf()
Description copied from interface: JobStatisticsInterface
Get job configuration (job.xml) values

Specified by:
getJobConf in interface JobStatisticsInterface

getLongValue

public long getLongValue(Enum key)
Specified by:
getLongValue in interface JobStatisticsInterface

getDoubleValue

public double getDoubleValue(Enum key)
Specified by:
getDoubleValue in interface JobStatisticsInterface

getStringValue

public String getStringValue(Enum key)
Specified by:
getStringValue in interface JobStatisticsInterface

setValue

public void setValue(Enum key,
                     long value)
Specified by:
setValue in interface JobStatisticsInterface

setValue

public void setValue(Enum key,
                     double value)
Specified by:
setValue in interface JobStatisticsInterface

setValue

public void setValue(Enum key,
                     String value)
Specified by:
setValue in interface JobStatisticsInterface

printJobExecutionStatistics

public void printJobExecutionStatistics()
Specified by:
printJobExecutionStatistics in interface JobStatisticsInterface

getMapTaskList

public ArrayList<MapTaskStatistics> getMapTaskList(Enum mapTaskSortKey,
                                                   JobStatisticsInterface.KeyDataType dataType)
Specified by:
getMapTaskList in interface JobStatisticsInterface
Parameters:
mapTaskSortKey - : Specific counter key used for sorting the task list
dataType - : indicates the data type of the counter key used for sorting If sort key is null then by default map tasks are sorted using map task ids.
Returns:
mapTaskList : ArrayList of MapTaskStatistics

getReduceTaskList

public ArrayList<ReduceTaskStatistics> getReduceTaskList(Enum reduceTaskSortKey,
                                                         JobStatisticsInterface.KeyDataType dataType)
Specified by:
getReduceTaskList in interface JobStatisticsInterface
Parameters:
reduceTaskSortKey - : Specific counter key used for sorting the task list
dataType - : indicates the data type of the counter key used for sorting If sort key is null then, by default reduce tasks are sorted using task ids.
Returns:
reduceTaskList : ArrayList of ReduceTaskStatistics


Copyright © 2009 The Apache Software Foundation