org.apache.hadoop.vaidya
Class DiagnosticTest
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiagnosticTest
public DiagnosticTest()
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