com.thoughtworks.xstream.tools.benchmark.reporters
Class MultiReporter

java.lang.Object
  extended by com.thoughtworks.xstream.tools.benchmark.reporters.MultiReporter
All Implemented Interfaces:
Reporter

public class MultiReporter
extends Object
implements Reporter

A reporter multiplexing the results to other Reporters.

Since:
1.3
Author:
Jörg Schaible

Constructor Summary
MultiReporter(Reporter[] reporter)
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiReporter

public MultiReporter(Reporter[] reporter)
Method Detail

endBenchmark

public void endBenchmark()
Description copied from interface: Reporter
Benchmark has ended. This will always be called ONCE (and only once) AFTER everything else.

Specified by:
endBenchmark in interface Reporter

endMetric

public void endMetric(Metric metric)
Specified by:
endMetric in interface Reporter

endTarget

public void endTarget(Target target)
Specified by:
endTarget in interface Reporter

metricFailed

public void metricFailed(Product product,
                         Exception e)
Specified by:
metricFailed in interface Reporter

metricRecorded

public void metricRecorded(Product product,
                           double result)
Specified by:
metricRecorded in interface Reporter

startBenchmark

public void startBenchmark()
Description copied from interface: Reporter
Benchmark has started. This will always be called ONCE (and only once) BEFORE everything else.

Specified by:
startBenchmark in interface Reporter

startMetric

public void startMetric(Metric metric)
Specified by:
startMetric in interface Reporter

startTarget

public void startTarget(Target target)
Specified by:
startTarget in interface Reporter


Copyright © 2004-2014 XStream. All Rights Reserved.