org.jboss.jrunit.controller.persistence
Class BenchmarkPersistence

java.lang.Object
  extended byorg.jboss.jrunit.controller.persistence.BenchmarkPersistence
Direct Known Subclasses:
BenchmarkDatabaseBenchmarkPersistence

public abstract class BenchmarkPersistence
extends java.lang.Object

Author:
clebert.suconic@jboss.com

Constructor Summary
BenchmarkPersistence()
           
 
Method Summary
abstract  void close()
           
abstract  void persist(Benchmark benchmark)
           
abstract  java.util.Collection readBenchmarks(int parentId, boolean keepGoing)
          Loads all the Benchmarks with a given parent.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BenchmarkPersistence

public BenchmarkPersistence()
Method Detail

persist

public abstract void persist(Benchmark benchmark)
                      throws java.lang.Exception
Throws:
java.lang.Exception

close

public abstract void close()
                    throws java.lang.Exception
Throws:
java.lang.Exception

readBenchmarks

public abstract java.util.Collection readBenchmarks(int parentId,
                                                    boolean keepGoing)
                                             throws java.lang.Exception
Loads all the Benchmarks with a given parent. If keepgoing is true, the method will load children of children also (recursive method)

Throws:
java.lang.Exception


JRunit, a JUnit extension for distributed client/server tests.