org.benchy.executor
Class DefaultBenchmarkExecutor

java.lang.Object
  extended by org.benchy.executor.DefaultBenchmarkExecutor
All Implemented Interfaces:
BenchmarkExecutor

public class DefaultBenchmarkExecutor
extends Object
implements BenchmarkExecutor

The BenchmarkRunner is responsible for executing a Benchmark.

A BenchmarkRunner is not multi-threaded itself (responsibility of the Driver) so can not be compared to the Executor.

Author:
Peter Veentjer.

Constructor Summary
DefaultBenchmarkExecutor(BenchmarkResultRepository resultRepository)
          Creates a new DefaultBenchmarkExecutor with the provided BenchmarkResultRepository where it stores the result.
 
Method Summary
 void execute(Benchmark... benchmarks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBenchmarkExecutor

public DefaultBenchmarkExecutor(BenchmarkResultRepository resultRepository)
Creates a new DefaultBenchmarkExecutor with the provided BenchmarkResultRepository where it stores the result.

Parameters:
resultRepository - the BenchmarkResultRepository that is used to write the BenchmarkResult to.
Throws:
NullPointerException - if resultRepository is null.
Method Detail

execute

public void execute(Benchmark... benchmarks)
Specified by:
execute in interface BenchmarkExecutor


Copyright © 2008-2010 Multiverse. All Rights Reserved.