spec.harness.analyzer
Class PollingAnalyzerExample

java.lang.Object
  extended by spec.harness.analyzer.AnalyzerBase
      extended by spec.harness.analyzer.PollingAnalyzerExample

public class PollingAnalyzerExample
extends AnalyzerBase

This Analyzer is an example of an Analyzer that is based on the polling mechanism available in the SPECjvm2008 analyzer functionality. The harness will call the method execute at a regular time interval. The time interval is controlled by the property specjvm.benchmark.analyzer.frequency which by default is 1 second. This Analyzer type is good to use when for example a resource should be monitored throughout the run. In this example the number of operations done will be gathered. It is a contrived example.


Nested Class Summary
static class PollingAnalyzerExample.NumberOfOperations
           
 
Constructor Summary
PollingAnalyzerExample()
           
 
Method Summary
 void execute(long time)
          Execution method called at regular intervals for polling stats.
 
Methods inherited from class spec.harness.analyzer.AnalyzerBase
addError, addErrorToSuiteResult, addViolationToSuiteResult, endMeasurementInterval, getBenchmarkDuration, getBenchmarkName, getNoOps, isTimedRun, report, report, setIterationResult, setup, setupAnalyzerClass, startMeasurementInterval, tearDown, tearDownAnalyzerClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollingAnalyzerExample

public PollingAnalyzerExample()
Method Detail

execute

public void execute(long time)
Description copied from class: AnalyzerBase
Execution method called at regular intervals for polling stats.

Specified by:
execute in class AnalyzerBase
Parameters:
time - when the call is made