32 #ifndef __SHORE_CLIENT_H 33 #define __SHORE_CLIENT_H 173 _measure_type(aType),
229 return (
run_xcts(_trxid, _notrxs).err_num());
267 #endif // __SHORE_CLIENT_H const int THINK_TIME
Definition: shore_client.h:91
const int BATCH_SIZE
Definition: shore_client.h:88
void print_tables()
Definition: shore_client.h:253
boost::program_options::variables_map optionValues
Definition: shore_client.h:155
w_error_codes err_num() const
Definition: w_rc.h:510
bool _is_bound
Definition: shore_client.h:150
int _id
Definition: shore_client.h:152
bool is_error() const
True if this return code is not RCOK or equivalent. This must be called for every w_rc_t before destr...
Definition: w_rc.h:505
static void abort_test()
Definition: shore_client.cpp:43
virtual int dump()
Definition: shore_env.cpp:885
const int DF_SPREAD_THREADS
Definition: shore_client.h:55
Definition: shore_client.h:43
virtual w_rc_t submit_one(int xct_type, int num_xct)=0
virtual int init()
Definition: shore_env.cpp:376
base_client_t(std::string tname, const int id, ShoreEnv *env, const MeasurementType aType, const int trxid, const int numOfTrxs)
Definition: shore_client.h:168
MeasurementType
Definition: shore_client.h:108
const int DF_WARMUP_TRX_PER_THR
Definition: shore_client.h:79
w_rc_t run_xcts(int xct_type, int num_xct)
Definition: shore_client.cpp:112
map< int, string > mapSupTrxs
Definition: shore_client.h:128
virtual ~base_client_t()
Definition: shore_client.h:185
guard< condex_pair > _cp
Definition: shore_client.h:147
const int MAX_NUM_OF_THR
Definition: shore_client.h:61
int _trxid
Definition: shore_client.h:142
int _notrxs
Definition: shore_client.h:144
Definition: shore_client.h:124
const int DF_WARMUP_DURATION
Definition: shore_client.h:82
Definition: kits_thread.h:134
base_client_t()
Definition: shore_client.h:159
mapSupTrxs::iterator mapSupTrxsIt
Definition: shore_client.h:130
: Definition of a Shore environment (database)
const eBindingType DF_BINDING_TYPE
Definition: shore_client.h:73
const int DF_WARMUP_INTERVAL
Definition: shore_client.h:106
Definition: shore_client.h:109
int inst_test_env(int argc, char *argv[])
int _rv
Definition: shore_client.h:153
static void resume_test()
Definition: shore_client.cpp:47
bool is_bound() const
Definition: shore_client.h:213
MeasurementType _measure_type
Definition: shore_client.h:140
int id()
Definition: shore_client.h:209
Return code for most functions and methods.
Definition: w_rc.h:87
w_rc_t load()
Definition: shore_env.cpp:150
Definition: shore_client.h:112
Definition: shore_client.h:44
Definition: shore_client.h:42
#define TRACE
Other modules in our program use this macro for reporting. We can use preprocessor macros like FILE a...
Definition: trace.h:91
static int load_sup_xct(mapSupTrxs &map)
Definition: shore_client.h:241
Definition: shore_client.h:111
: Definition of helper loader thread classes
Definition: shore_client.h:113
int rv()
Definition: shore_client.h:217
Definition: shore_client.h:110
bool is_initialized()
Definition: shore_env.cpp:140
const int DF_TRX_PER_THR
Definition: shore_client.h:64
#define TRACE_ALWAYS
Definition: trace_types.h:41
Definition: shore_env.h:349
w_rc_t submit_batch(int xct_type, int &trx_cnt, const int batch_size)
Definition: shore_client.cpp:64
void operator=(base_client_t const &)
mapSupTrxs::const_iterator mapSupTrxsConstIt
Definition: shore_client.h:132
int powerrun()
Definition: shore_client.h:224
const int DF_DURATION
Definition: shore_client.h:67
eBindingType
Definition: shore_client.h:41
const int DF_NUM_OF_THR
Definition: shore_client.h:58
void work()
Definition: shore_client.h:188
ShoreEnv * _env
Definition: shore_client.h:137
const int DF_NUM_OF_ITERS
Definition: shore_client.h:70
static bool is_test_aborted()
Definition: shore_client.cpp:51
const int DF_WARMUP_ITERS
Definition: shore_client.h:85