org.benchy.repository
Interface BenchmarkResultRepository

All Known Implementing Classes:
FileBasedBenchmarkResultRepository

public interface BenchmarkResultRepository

The TestResultRepository is responsible for storing and retrieving BenchmarkResult.

Author:
Peter Veentjer

Method Summary
 BenchmarkResult load(java.util.Date date, java.lang.String benchmarkName)
          Loads all the testresults for a specific benchmark executed on a specific date.
 BenchmarkResult loadLast(java.util.Date date, java.lang.String benchmarkName)
           
 BenchmarkResult loadLast(java.lang.String benchmark)
           
 void store(BenchmarkResult result)
          Stores the BenchmarkResult in the repository.
 

Method Detail

load

BenchmarkResult load(java.util.Date date,
                     java.lang.String benchmarkName)
Loads all the testresults for a specific benchmark executed on a specific date.

Parameters:
date - the data the benchmark was executed
benchmarkName - the name of the benchmark.
Returns:
a list containing all TestResults for that specific benchmark on that specific date. If no items are found, an empty list is returned.
Throws:
java.lang.NullPointerException - if date or benchmarkname is null.

loadLast

BenchmarkResult loadLast(java.util.Date date,
                         java.lang.String benchmarkName)

loadLast

BenchmarkResult loadLast(java.lang.String benchmark)

store

void store(BenchmarkResult result)
Stores the BenchmarkResult in the repository.

Parameters:
result - the TestResult to store.
Throws:
java.lang.NullPointerException - if result is null.


Copyright © 2008-2010 Multiverse. All Rights Reserved.