org.apache.hadoop.vaidya.statistics.job
Class JobStatistics
java.lang.Object
org.apache.hadoop.vaidya.statistics.job.JobStatistics
- All Implemented Interfaces:
- JobStatisticsInterface
public class JobStatistics
- extends Object
- implements JobStatisticsInterface
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobStatistics
public JobStatistics(JobConf jobConf,
JobHistoryParser.JobInfo jobInfo)
throws ParseException
- Throws:
ParseException
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 listdataType
- : 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 listdataType
- : 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