File broker_tester.c
FileList > broker > broker_tester.c
Go to the source code of this file
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <assert.h>
#include <sys/time.h>
#include "broker_config.h"
#include "broker_util.h"
#include "broker_shm.h"
#include "broker_filename.h"
#include "cas_protocol.h"
#include "cas_common.h"
#include "cubrid_getopt.h"
#include "cas_cci.h"
#include "ini_parser.h"
Classes
Public Attributes
Public Static Attributes
Public Functions
Public Static Functions
| Type |
Name |
| int |
execute_test (int conn_handle, int shard_flag)
|
| int |
execute_test_with_query (int conn_handle, char * query, int shard_flag)
|
| void |
free_br_tester_info (void)
|
| int |
get_master_shm_id (void)
|
| void |
get_time (struct timeval * start_time, char * time, int buf_len)
|
| void |
init_default_conn_info (int appl_server_type)
|
| int |
init_tester_info (char * broker_name)
|
| bool |
is_number_type (T_CCI_U_TYPE type)
|
| void |
print_conn_result (char * broker_name, int conn_hd_id)
|
| void |
print_line (const char * ch, int num)
|
| void |
print_query_test_result (int ret)
|
| void |
print_result (int row_count, int err_code, int shard_flag, int shard_id, char * time, char * query)
|
| int |
print_result_set (int req, T_CCI_ERROR * err_buf, T_CCI_COL_INFO * col_info, int col_count)
|
| void |
print_shard_result (void)
|
| void |
print_title (int shard_flag)
|
| void |
print_usage (void)
|
Macros
Public Attributes Documentation
variable br_tester_info
TESTER_INFO br_tester_info;
Public Static Attributes Documentation
variable SECTION_NAME
const char SECTION_NAME[];
variable out_file_fp
variable tester_err_msg
char tester_err_msg[1024];
Public Functions Documentation
function main
int main (
int argc,
char * argv
)
Public Static Functions Documentation
function execute_test
static int execute_test (
int conn_handle,
int shard_flag
)
function execute_test_with_query
static int execute_test_with_query (
int conn_handle,
char * query,
int shard_flag
)
function free_br_tester_info
static void free_br_tester_info (
void
)
function get_master_shm_id
static int get_master_shm_id (
void
)
function get_time
static void get_time (
struct timeval * start_time,
char * time,
int buf_len
)
function init_default_conn_info
static void init_default_conn_info (
int appl_server_type
)
function init_tester_info
static int init_tester_info (
char * broker_name
)
function is_number_type
static bool is_number_type (
T_CCI_U_TYPE type
)
function print_conn_result
static void print_conn_result (
char * broker_name,
int conn_hd_id
)
function print_line
static void print_line (
const char * ch,
int num
)
function print_query_test_result
static void print_query_test_result (
int ret
)
function print_result
static void print_result (
int row_count,
int err_code,
int shard_flag,
int shard_id,
char * time,
char * query
)
function print_result_set
static int print_result_set (
int req,
T_CCI_ERROR * err_buf,
T_CCI_COL_INFO * col_info,
int col_count
)
function print_shard_result
static void print_shard_result (
void
)
function print_title
static void print_title (
int shard_flag
)
function print_usage
static void print_usage (
void
)
Macro Definition Documentation
define DEFAULT_CUB_USER_NAME
#define DEFAULT_CUB_USER_NAME `"PUBLIC"`
define DEFAULT_EMPTY_STRING
#define DEFAULT_EMPTY_STRING `"\0"`
define MAX_DISPLAY_LENGTH
#define MAX_DISPLAY_LENGTH `20`
define PRINT_CCI_ERROR
#define PRINT_CCI_ERROR (
...
) `/* multi line expression */`
define PRINT_RESULT
#define PRINT_RESULT (
...
) `/* multi line expression */`
define PRINT_TITLE
#define PRINT_TITLE (
n,
...
) `/* multi line expression */`
#define QUERY_FORMAT `"%s"`
#define RESULT_FORMAT `"%-15s"`
#define ROWCOUNT_FORMAT `"%-15d"`
#define SHARD_ID_FORMAT `"%-10d"`
#define STR_ROWCOUNT_FORMAT `"%-15s"`
#define STR_SHARD_ID_FORMAT `"%-10s"`
define TESTER_ERR_MSG_SIZE
#define TESTER_ERR_MSG_SIZE `1024`
define TIME_BUF_SIZE
#define TIME_BUF_SIZE `50`
#define TIME_FORMAT `"%-20s"`
The documentation for this class was generated from the following file cubrid/src/broker/broker_tester.c