Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb.test
Class JDBCBench  view JDBCBench download JDBCBench.java

java.lang.Object
  extended byorg.hsqldb.test.JDBCBench

class JDBCBench
extends java.lang.Object


Nested Class Summary
(package private)  class JDBCBench.ClientThread
           
(package private)  class JDBCBench.MemoryWatcherThread
           
 
Field Summary
static int ACCOUNT
           
static int BRANCH
           
(package private) static java.lang.String createExtension
           
(package private)  int failed_transactions
           
(package private)  JDBCBench.MemoryWatcherThread MemoryWatcher
           
(package private) static int n_clients
           
(package private) static int n_txn_per_client
           
static int naccounts
           
static int nbranches
           
static int nhistory
           
static int ntellers
           
(package private) static boolean prepared_stmt
           
(package private) static java.lang.String ShutdownCommand
           
(package private)  long start_time
           
(package private) static java.io.PrintStream TabFile
           
(package private) static java.lang.String tableExtension
           
static int TELLER
           
static int tps
           
(package private)  int transaction_count
           
(package private) static boolean transactions
           
(package private) static boolean verbose
           
 
Constructor Summary
JDBCBench(java.lang.String url, java.lang.String user, java.lang.String password, boolean init)
           
 
Method Summary
static java.sql.Connection connect(java.lang.String DBUrl, java.lang.String DBUser, java.lang.String DBPassword)
           
static void connectClose(java.sql.Connection c)
           
(package private)  void createDatabase(java.lang.String url, java.lang.String user, java.lang.String password)
           
static int getRandomID(int type)
           
static int getRandomInt(int lo, int hi)
           
 void incrementFailedTransactionCount()
           
 void incrementTransactionCount()
           
static void main(java.lang.String[] Args)
           
 void reportDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tps

public static int tps

nbranches

public static int nbranches

ntellers

public static int ntellers

naccounts

public static int naccounts

nhistory

public static int nhistory

TELLER

public static final int TELLER
See Also:
Constant Field Values

BRANCH

public static final int BRANCH
See Also:
Constant Field Values

ACCOUNT

public static final int ACCOUNT
See Also:
Constant Field Values

failed_transactions

int failed_transactions

transaction_count

int transaction_count

n_clients

static int n_clients

n_txn_per_client

static int n_txn_per_client

start_time

long start_time

transactions

static boolean transactions

prepared_stmt

static boolean prepared_stmt

tableExtension

static java.lang.String tableExtension

createExtension

static java.lang.String createExtension

ShutdownCommand

static java.lang.String ShutdownCommand

TabFile

static java.io.PrintStream TabFile

verbose

static boolean verbose

MemoryWatcher

JDBCBench.MemoryWatcherThread MemoryWatcher
Constructor Detail

JDBCBench

public JDBCBench(java.lang.String url,
                 java.lang.String user,
                 java.lang.String password,
                 boolean init)
Method Detail

main

public static void main(java.lang.String[] Args)

reportDone

public void reportDone()

incrementTransactionCount

public void incrementTransactionCount()

incrementFailedTransactionCount

public void incrementFailedTransactionCount()

createDatabase

void createDatabase(java.lang.String url,
                    java.lang.String user,
                    java.lang.String password)
              throws java.lang.Exception

getRandomInt

public static int getRandomInt(int lo,
                               int hi)

getRandomID

public static int getRandomID(int type)

connect

public static java.sql.Connection connect(java.lang.String DBUrl,
                                          java.lang.String DBUser,
                                          java.lang.String DBPassword)

connectClose

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