Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RDBCBench Class Reference
+ Collaboration diagram for RDBCBench:

Public Member Functions

 RDBCBench (TSQLConnection *conn, Bool_t init)
 
 ~RDBCBench ()
 
void ReportDone ()
 

Private Member Functions

void StopThreads ()
 
void CreateDatabase ()
 
void DropDatabase ()
 
int DoOne (int bid, int tid, int aid, int delta)
 
int GetRandomID (int type)
 
int GetRandomInt (int lo, int hi)
 

Private Attributes

TSQLConnectionfConn
 
TList * fListOfClients
 
TStopwatch fTimer
 

Friends

class ClientThread
 

Detailed Description

Definition at line 63 of file RDBCbench.C.

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

Constructor & Destructor Documentation

RDBCBench::RDBCBench ( TSQLConnection conn,
Bool_t  init 
)

Definition at line 136 of file RDBCbench.C.

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

References ClientThread, CreateDatabase(), DropDatabase(), fConn, fListOfClients, fTimer, gClients, ClientThread::GetThread(), gTxnPerClient, i, printf(), and ClientThread::Start().

+ Here is the call graph for this function:

RDBCBench::~RDBCBench ( )
inline

Definition at line 83 of file RDBCbench.C.

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

References fConn, and fListOfClients.

Member Function Documentation

void RDBCBench::CreateDatabase ( )
private

Definition at line 231 of file RDBCbench.C.

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

References TSQL::ClearWarnings(), TSQLConnection::CreateStatement(), TSQLStatement::ExecuteUpdate(), fConn, i, naccounts, nbranches, ntellers, str, and tps.

Referenced by RDBCBench().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int RDBCBench::DoOne ( int  bid,
int  tid,
int  aid,
int  delta 
)
private

Definition at line 333 of file RDBCbench.C.

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

References TSQL::ClearWarnings(), TSQLConnection::CreateStatement(), TSQLStatement::ExecuteQuery(), TSQLStatement::ExecuteUpdate(), fConn, TSQLResultSet::GetInt(), TSQLResultSet::Next(), and TSQL::SetHandler().

Referenced by ClientThread::Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void RDBCBench::DropDatabase ( )
private

Definition at line 307 of file RDBCbench.C.

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

References TSQLConnection::CreateStatement(), TSQLStatement::ExecuteUpdate(), fConn, TSQL::SetHandler(), str, and TSQL::UnsetHandler().

Referenced by RDBCBench().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int RDBCBench::GetRandomID ( int  type)
private

Definition at line 207 of file RDBCbench.C.

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

References GetRandomInt(), kACCOUNT, kBRANCH, kTELLER, Acts::UnitConstants::min, naccounts, nbranches, ntellers, and tps.

Referenced by ClientThread::Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int RDBCBench::GetRandomInt ( int  lo,
int  hi 
)
private

Definition at line 196 of file RDBCbench.C.

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

Referenced by GetRandomID(), and ClientThread::Run().

+ Here is the caller graph for this function:

void RDBCBench::ReportDone ( )

Definition at line 162 of file RDBCbench.C.

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

References failed_transactions, fTimer, gClients, printf(), StopThreads(), and transaction_count.

Referenced by ClientThread::Run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void RDBCBench::StopThreads ( )
private

Definition at line 188 of file RDBCbench.C.

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

References fListOfClients.

Referenced by ReportDone().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class ClientThread
friend

Definition at line 65 of file RDBCbench.C.

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

Referenced by RDBCBench().

Member Data Documentation

TSQLConnection* RDBCBench::fConn
private

Definition at line 70 of file RDBCbench.C.

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

Referenced by CreateDatabase(), DoOne(), DropDatabase(), RDBCBench(), and ~RDBCBench().

TList* RDBCBench::fListOfClients
private

Definition at line 71 of file RDBCbench.C.

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

Referenced by RDBCBench(), StopThreads(), and ~RDBCBench().

TStopwatch RDBCBench::fTimer
private

Definition at line 72 of file RDBCbench.C.

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

Referenced by RDBCBench(), and ReportDone().


The documentation for this class was generated from the following file: