All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thoughtworks.xstream.tools.benchmark.Reporter Maven / Gradle / Ivy

There is a newer version: 1.4.20
Show newest version
package com.thoughtworks.xstream.tools.benchmark;

/**
 * A listener to what the {@link 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 Harness */ public interface Reporter { /** * Benchmark has started. This will always be called ONCE (and only once) BEFORE everything else. */ void startBenchmark(); void startMetric(Metric metric); void startTarget(Target target); void metricRecorded(Product product, double result); void metricFailed(Product product, Exception e); void endTarget(Target target); void endMetric(Metric metric); /** * Benchmark has ended. This will always be called ONCE (and only once) AFTER everything else. */ void endBenchmark(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy