org.jboss.jrunit.controller.reporters
Class DatabaseBenchmarkReporter

java.lang.Object
  extended by org.jboss.jrunit.controller.reporters.BenchmarkReporter
      extended by org.jboss.jrunit.controller.reporters.DatabaseBenchmarkReporter

public class DatabaseBenchmarkReporter
extends BenchmarkReporter

Author:
clebert.suconic@jboss.com

Constructor Summary
DatabaseBenchmarkReporter(java.lang.String jdbcConnection, java.lang.String jdbcClass)
           
DatabaseBenchmarkReporter(java.lang.String jdbcConnection, java.lang.String jdbcClass, java.lang.String jdbcUserName, java.lang.String jdbcPassword)
           
 
Method Summary
 java.sql.Connection createConnection()
           
 void writeBenchmarkResults(Benchmark benchmark)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseBenchmarkReporter

public DatabaseBenchmarkReporter(java.lang.String jdbcConnection,
                                 java.lang.String jdbcClass)
                          throws java.lang.Exception
Throws:
java.lang.Exception

DatabaseBenchmarkReporter

public DatabaseBenchmarkReporter(java.lang.String jdbcConnection,
                                 java.lang.String jdbcClass,
                                 java.lang.String jdbcUserName,
                                 java.lang.String jdbcPassword)
                          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

writeBenchmarkResults

public void writeBenchmarkResults(Benchmark benchmark)
Specified by:
writeBenchmarkResults in class BenchmarkReporter

createConnection

public java.sql.Connection createConnection()
                                     throws java.lang.ClassNotFoundException,
                                            java.sql.SQLException
Throws:
java.lang.ClassNotFoundException
java.sql.SQLException


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