Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RDBCbench.C File Reference
#include <RDBC/TSQLConnection.h>
#include <RDBC/TSQLStatement.h>
#include <RDBC/TSQLDriverManager.h>
#include <RDBC/TSQLResultSet.h>
#include <TTimer.h>
#include <TStopwatch.h>
#include <TString.h>
#include <TRandom.h>
#include <RQ_OBJECT.h>
#include <TSystem.h>
+ Include dependency graph for RDBCbench.C:

Go to the source code of this file.

Classes

class  RDBCBench
 
class  ClientThread
 

Enumerations

enum  { kTELLER, kBRANCH, kACCOUNT }
 

Functions

void CatchFailedTransaction (TSQLException *e)
 
void bench (const TString &dsn="", const TString &usr="", const TString &psw="", const TString &option="", const TString &tpc_str="100", const TString &clients_str="10")
 
void Catch (TSQLException *e)
 

Variables

int tps = 1
 
int nbranches = 1
 
int ntellers = 10
 
int naccounts = 100000
 
int nhistory = 864000
 
int gClients = 10
 
int gTxnPerClient = 100
 
int failed_transactions = 0
 
int transaction_count = 0
 
Bool_t gVerbose = kFALSE
 
long start_time = 0
 

Enumeration Type Documentation

anonymous enum
Enumerator:
kTELLER 
kBRANCH 
kACCOUNT 

Definition at line 59 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 59 of file RDBCbench.C

Function Documentation

void bench ( const TString &  dsn = "",
const TString &  usr = "",
const TString &  psw = "",
const TString &  option = "",
const TString &  tpc_str = "100",
const TString &  clients_str = "10" 
)

Definition at line 392 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 392 of file RDBCbench.C

References failed_transactions, gClients, TSQLDriverManager::GetConnection(), gSQLDriverManager, gTxnPerClient, gVerbose, printf(), TSQL::SetHandler(), and transaction_count.

+ Here is the call graph for this function:

void Catch ( TSQLException e)

Definition at line 448 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 448 of file RDBCbench.C

References TSQLException::GetMessage(), printf(), and str.

+ Here is the call graph for this function:

void CatchFailedTransaction ( TSQLException e)

Definition at line 379 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 379 of file RDBCbench.C

References failed_transactions, TSQLException::GetMessage(), gVerbose, printf(), and str.

+ Here is the call graph for this function:

Variable Documentation

int failed_transactions = 0

Definition at line 55 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 55 of file RDBCbench.C

Referenced by bench(), CatchFailedTransaction(), and RDBCBench::ReportDone().

int gClients = 10

Definition at line 52 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 52 of file RDBCbench.C

Referenced by bench(), RDBCBench::RDBCBench(), and RDBCBench::ReportDone().

int gTxnPerClient = 100

Definition at line 53 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 53 of file RDBCbench.C

Referenced by bench(), and RDBCBench::RDBCBench().

Bool_t gVerbose = kFALSE

Definition at line 57 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 57 of file RDBCbench.C

Referenced by bench(), and CatchFailedTransaction().

int naccounts = 100000

Definition at line 50 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 50 of file RDBCbench.C

Referenced by RDBCBench::CreateDatabase(), and RDBCBench::GetRandomID().

int nbranches = 1

Definition at line 48 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 48 of file RDBCbench.C

Referenced by RDBCBench::CreateDatabase(), RDBCBench::GetRandomID(), and make_csv().

int nhistory = 864000

Definition at line 51 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 51 of file RDBCbench.C

int ntellers = 10

Definition at line 49 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 49 of file RDBCbench.C

Referenced by RDBCBench::CreateDatabase(), and RDBCBench::GetRandomID().

long start_time = 0

Definition at line 58 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 58 of file RDBCbench.C

int tps = 1

Definition at line 47 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 47 of file RDBCbench.C

Referenced by RDBCBench::CreateDatabase(), and RDBCBench::GetRandomID().

int transaction_count = 0

Definition at line 56 of file RDBCbench.C.

View newest version in sPHENIX GitHub at line 56 of file RDBCbench.C

Referenced by bench(), RDBCBench::ReportDone(), and ClientThread::Run().