spec.harness.analyzer
Class AnalyzerBase

java.lang.Object
  extended by spec.harness.analyzer.AnalyzerBase
Direct Known Subclasses:
CallbackAnalyzerExample, HeapMemoryFreeAnalyzer, HeapMemoryTotalAnalyzer, PollingAnalyzerExample, PowerAnalyzer, TempAnalyzer

public abstract class AnalyzerBase
extends java.lang.Object


Constructor Summary
AnalyzerBase()
           
 
Method Summary
protected  void addError(java.lang.String msg)
           
protected static void addErrorToSuiteResult(java.lang.String msg)
           
protected static void addViolationToSuiteResult(java.lang.String msg)
           
 void endMeasurementInterval()
          This method is called at the end of the measurement interval.
abstract  void execute(long time)
          Execution method called at regular intervals for polling stats.
protected  long getBenchmarkDuration()
           
protected  java.lang.String getBenchmarkName()
           
protected  long getNoOps()
           
protected  boolean isTimedRun()
           
 void report(AnalyzerResult aResult)
           
 void report(TYInfo tyi)
           
 void setIterationResult(IterationResult iterationResult)
           
 void setup()
          Setup method called when analyzer is created.
static void setupAnalyzerClass()
          Setup method for the analyzer class, which is called when an analyzer class is created.
 void startMeasurementInterval()
          This method is called at the start of the measurement interval.
 void tearDown()
          Tear down method called when analyzer is brought down.
static void tearDownAnalyzerClass()
          Tear down method for the analyzer class, which is called when an analyzer class is created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyzerBase

public AnalyzerBase()
Method Detail

execute

public abstract void execute(long time)
Execution method called at regular intervals for polling stats.

Parameters:
time - when the call is made

setIterationResult

public final void setIterationResult(IterationResult iterationResult)

setupAnalyzerClass

public static void setupAnalyzerClass()
Setup method for the analyzer class, which is called when an analyzer class is created. Static initiation work can be done in this one. This is done once for the whole benchmark suite.


setup

public void setup()
Setup method called when analyzer is created. Initiation work should be done in this one. This is done once per iteration, each time in a new Analyzer instance.


startMeasurementInterval

public void startMeasurementInterval()
This method is called at the start of the measurement interval. It is called by the ProgramRunner thread.


endMeasurementInterval

public void endMeasurementInterval()
This method is called at the end of the measurement interval. It is called by the ProgramRunner thread.


tearDown

public void tearDown()
Tear down method called when analyzer is brought down. Reporting work should be done in this one. This is done once per iteration, each time in a new Analyzer instance.


tearDownAnalyzerClass

public static void tearDownAnalyzerClass()
Tear down method for the analyzer class, which is called when an analyzer class is created. Static post-benchmarks-work can be done in this one. This is done once for the whole benchmark suite.


report

public final void report(TYInfo tyi)

report

public final void report(AnalyzerResult aResult)

isTimedRun

protected boolean isTimedRun()

getBenchmarkDuration

protected long getBenchmarkDuration()

getBenchmarkName

protected java.lang.String getBenchmarkName()

getNoOps

protected long getNoOps()

addError

protected void addError(java.lang.String msg)

addErrorToSuiteResult

protected static void addErrorToSuiteResult(java.lang.String msg)

addViolationToSuiteResult

protected static void addViolationToSuiteResult(java.lang.String msg)