org.apache.hadoop.vaidya.statistics.job
Interface JobStatisticsInterface

All Known Implementing Classes:
JobStatistics

public interface JobStatisticsInterface


Nested Class Summary
static class JobStatisticsInterface.JobKeys
          Job Keys
static class JobStatisticsInterface.KeyDataType
           
static class JobStatisticsInterface.MapTaskKeys
          Map Task Keys
static class JobStatisticsInterface.ReduceTaskKeys
          Reduce Task Keys
 
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 valye)
           
 void setValue(Enum key, long value)
           
 void setValue(Enum key, String value)
           
 

Method Detail

getJobConf

JobConf getJobConf()
Get job configuration (job.xml) values


getLongValue

long getLongValue(Enum key)

getDoubleValue

double getDoubleValue(Enum key)

getStringValue

String getStringValue(Enum key)

setValue

void setValue(Enum key,
              long value)

setValue

void setValue(Enum key,
              double valye)

setValue

void setValue(Enum key,
              String value)

getMapTaskList

ArrayList<MapTaskStatistics> getMapTaskList(Enum mapTaskSortKey,
                                            JobStatisticsInterface.KeyDataType dataType)
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

ArrayList<ReduceTaskStatistics> getReduceTaskList(Enum reduceTaskSortKey,
                                                  JobStatisticsInterface.KeyDataType dataType)
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

printJobExecutionStatistics

void printJobExecutionStatistics()


Copyright © 2009 The Apache Software Foundation