com.carrotsearch.junitbenchmarks.h2
Class H2Consumer

java.lang.Object
  extended by com.carrotsearch.junitbenchmarks.AutocloseConsumer
      extended by com.carrotsearch.junitbenchmarks.h2.H2Consumer
All Implemented Interfaces:
IResultsConsumer, Closeable

public final class H2Consumer
extends AutocloseConsumer
implements Closeable

IResultsConsumer that appends records to a H2 database.


Constructor Summary
H2Consumer()
           
H2Consumer(File dbFileName)
           
H2Consumer(File dbFileName, File chartsDir, String customKeyValue)
           
 
Method Summary
 void accept(Result result)
          Accept a single benchmark result.
 void close()
          Close the database connection and finalize transaction.
 void rollback()
          Rollback all performed operations on request.
 
Methods inherited from class com.carrotsearch.junitbenchmarks.AutocloseConsumer
addAutoclose, removeAutoclose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H2Consumer

public H2Consumer()

H2Consumer

public H2Consumer(File dbFileName)

H2Consumer

public H2Consumer(File dbFileName,
                  File chartsDir,
                  String customKeyValue)
Method Detail

accept

public void accept(Result result)
Accept a single benchmark result.

Specified by:
accept in interface IResultsConsumer

close

public void close()
Close the database connection and finalize transaction.

Specified by:
close in interface Closeable

rollback

public void rollback()
Rollback all performed operations on request.



Copyright © 2011 Carrot Search s.c.. All Rights Reserved.