org.apache.hadoop.vaidya
Class DiagnosticTest

java.lang.Object
  extended by org.apache.hadoop.vaidya.DiagnosticTest
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
BalancedReducePartitioning, MapSideDiskSpill, MapsReExecutionImpact, ReadingHDFSFilesAsSideEffect, ReducesReExecutionImpact

public abstract class DiagnosticTest
extends Object
implements Runnable


Constructor Summary
DiagnosticTest()
           
 
Method Summary
abstract  double evaluate(JobStatistics jobExecutionStats)
           
 String getDescription()
           
 double getImpactLevel()
           
 double getImportance()
           
protected  double getInputElementDoubleValue(String elementName, double defaultValue)
           
protected  long getInputElementLongValue(String elementName, long defaultValue)
           
protected  String getInputElementStringValue(String elementName, String defaultValue)
           
abstract  String getPrescription()
           
abstract  String getReferenceDetails()
           
 Element getReportElement(Document doc, Node parent, int i)
           
 double getSeverityLevel()
           
 double getSuccessThreshold()
           
 String getTitle()
           
 void initGlobals(JobStatistics jobExecutionStats, Element testConfigElement)
           
 boolean isEvaluated()
           
 boolean istestPassed()
           
 void run()
           
static double truncate(double x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagnosticTest

public DiagnosticTest()
Method Detail

isEvaluated

public boolean isEvaluated()

istestPassed

public boolean istestPassed()

initGlobals

public void initGlobals(JobStatistics jobExecutionStats,
                        Element testConfigElement)

getPrescription

public abstract String getPrescription()

getReferenceDetails

public abstract String getReferenceDetails()

evaluate

public abstract double evaluate(JobStatistics jobExecutionStats)

getTitle

public String getTitle()
                throws Exception
Throws:
Exception

getDescription

public String getDescription()
                      throws Exception
Throws:
Exception

getImportance

public double getImportance()
                     throws Exception
Throws:
Exception

getImpactLevel

public double getImpactLevel()
                      throws Exception
Throws:
Exception

getSeverityLevel

public double getSeverityLevel()
                        throws Exception
Throws:
Exception

getSuccessThreshold

public double getSuccessThreshold()
                           throws Exception
Throws:
Exception

getReportElement

public Element getReportElement(Document doc,
                                Node parent,
                                int i)
                         throws Exception
Throws:
Exception

run

public void run()
Specified by:
run in interface Runnable

getInputElementLongValue

protected long getInputElementLongValue(String elementName,
                                        long defaultValue)

getInputElementDoubleValue

protected double getInputElementDoubleValue(String elementName,
                                            double defaultValue)

getInputElementStringValue

protected String getInputElementStringValue(String elementName,
                                            String defaultValue)

truncate

public static double truncate(double x)


Copyright © 2009 The Apache Software Foundation