com.thoughtworks.xstream.tools.benchmark
Interface Reporter

All Known Implementing Classes:
HtmlReporter, TextReporter

public interface Reporter

A listener to what the Harness is doing that should report the results. The sequence of methods is:

 startBenchmark,
 (
   startMetric,
   (
     startTarget,
     ( metricRecorded | metricFailed ),
     endTarget
   ) * ,
   endMetric
 ) * ,
 endBenchmark
 

Author:
Joe Walnes
See Also:
Harness

Method Summary
 void endBenchmark()
          Benchmark has ended.
 void endMetric(Metric metric)
           
 void endTarget(Target target)
           
 void metricFailed(Product product, Exception e)
           
 void metricRecorded(Product product, double result)
           
 void startBenchmark()
          Benchmark has started.
 void startMetric(Metric metric)
           
 void startTarget(Target target)
           
 

Method Detail

startBenchmark

public void startBenchmark()
Benchmark has started. This will always be called ONCE (and only once) BEFORE everything else.


startMetric

public void startMetric(Metric metric)

startTarget

public void startTarget(Target target)

metricRecorded

public void metricRecorded(Product product,
                           double result)

metricFailed

public void metricFailed(Product product,
                         Exception e)

endTarget

public void endTarget(Target target)

endMetric

public void endMetric(Metric metric)

endBenchmark

public void endBenchmark()
Benchmark has ended. This will always be called ONCE (and only once) AFTER everything else.



Copyright © 2004-2007 XStream. All Rights Reserved.