spec.benchmarks.derby
Class DerbyHarness
java.lang.Object
spec.benchmarks.derby.DerbyHarness
public class DerbyHarness
- extends java.lang.Object
Constructor Summary |
DerbyHarness(int btid,
int databaseIndex,
int clientsNumber,
int shift)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tableNumber
public static int tableNumber
DATABASES_NUM
public static int DATABASES_NUM
clientsNumber
public int clientsNumber
databaseIndex
public int databaseIndex
accountsNumber
public int accountsNumber
DerbyHarness
public DerbyHarness(int btid,
int databaseIndex,
int clientsNumber,
int shift)
throws java.lang.Exception
- Throws:
java.lang.Exception
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)