spec.benchmarks.derby
Class DerbyHarness

java.lang.Object
  extended by spec.benchmarks.derby.DerbyHarness

public class DerbyHarness
extends java.lang.Object


Field Summary
 int accountsNumber
           
 int clientsNumber
           
 int databaseIndex
           
static int DATABASES_NUM
           
static int tableNumber
           
 
Constructor Summary
DerbyHarness(int btid, int databaseIndex, int clientsNumber, int shift)
           
 
Method Summary
static void connectClose(java.sql.Connection c)
           
static void createBaseDatabase(int limit, int accounts, int clients)
           
static void createDatabases()
           
static java.sql.Connection getNestedConnection(int databaseIndex)
           
static java.sql.Connection getStartConnection(int databaseIndex)
           
static void initDatabases()
           
static void main(int btid, int databaseIndex, int clientsNumber, int shift)
           
static void setDerbyProperties()
           
static void shutdownDerbySystem()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableNumber

public static int tableNumber

DATABASES_NUM

public static int DATABASES_NUM

clientsNumber

public int clientsNumber

databaseIndex

public int databaseIndex

accountsNumber

public int accountsNumber
Constructor Detail

DerbyHarness

public DerbyHarness(int btid,
                    int databaseIndex,
                    int clientsNumber,
                    int shift)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setDerbyProperties

public static void setDerbyProperties()

initDatabases

public static void initDatabases()

shutdownDerbySystem

public static void shutdownDerbySystem()

main

public static void main(int btid,
                        int databaseIndex,
                        int clientsNumber,
                        int shift)
                 throws java.lang.Exception
Throws:
java.lang.Exception

createDatabases

public static void createDatabases()
                            throws java.lang.Exception
Throws:
java.lang.Exception

createBaseDatabase

public static void createBaseDatabase(int limit,
                                      int accounts,
                                      int clients)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getNestedConnection

public static java.sql.Connection getNestedConnection(int databaseIndex)

getStartConnection

public static java.sql.Connection getStartConnection(int databaseIndex)

connectClose

public static void connectClose(java.sql.Connection c)