24 #ifndef _SERVER_SUPPORT_H_ 25 #define _SERVER_SUPPORT_H_ 27 #if !defined (SERVER_MODE) && !defined (SA_MODE) 28 #error server_support.h belongs to server or stand-alone modules 29 #endif // not SERVER_MODE and not SA_MODE 49 int reply_size,
char *buffer,
int buffer_size);
51 extern unsigned int css_send_reply_and_large_data_to_client (
unsigned int eid,
char *reply,
int reply_size,
52 char *buffer, INT64 buffer_size);
55 int reply_size,
char *buffer1,
int buffer1_size,
char *buffer2,
58 int reply_size,
char *buffer1,
int buffer1_size,
char *buffer2,
59 int buffer2_size,
char *buffer3,
int buffer3_size);
62 int *size,
int timeout);
66 (
THREAD_ENTRY * thrd,
unsigned int eid,
int request,
int size,
char *buffer),
69 extern int css_init (
THREAD_ENTRY * thread_p,
char *server_name,
int server_name_length,
int connection_id);
71 #if defined (ENABLE_UNUSED_FUNCTION) 72 extern char *css_get_client_version_string (
void);
78 #if defined (SERVER_MODE) 103 int net_request_index);
108 #if defined (SERVER_MODE) 111 #else // not SERVER_MODE = SA_MODE 126 #endif // not SERVER_MODE = SA_MODE void css_initialize_server_interfaces(int(*request_handler)(THREAD_ENTRY *thrd, unsigned int eid, int request, int size, char *buffer), CSS_THREAD_FN connection_error_handler)
unsigned int css_send_reply_and_data_to_client(CSS_CONN_ENTRY *conn, unsigned int eid, char *reply, int reply_size, char *buffer, int buffer_size)
unsigned int css_get_comm_request_id(THREAD_ENTRY *thread_p)
int(* CSS_THREAD_FN)(THREAD_ENTRY *thrd, CSS_THREAD_ARG)
THREAD_RET_T THREAD_CALLING_CONVENTION css_master_thread(void)
void css_set_ha_repl_delayed(void)
bool css_is_shutdown_timeout_expired(void)
void css_push_external_task(CSS_CONN_ENTRY *conn, cubthread::entry_task *task)
unsigned int css_receive_data_from_client_with_timeout(CSS_CONN_ENTRY *conn, unsigned int eid, char **buffer, int *size, int timeout)
int css_notify_ha_log_applier_state(THREAD_ENTRY *thread_p, HA_LOG_APPLIER_STATE state)
void css_set_ha_num_of_hosts(int num)
size_t css_count_transaction_worker_threads(THREAD_ENTRY *thread_p, int tran_index, int client_id)
bool css_are_all_request_handlers_suspended(void)
unsigned int css_receive_data_from_client(CSS_CONN_ENTRY *conn, unsigned int eid, char **buffer, int *size)
size_t css_get_num_connection_workers(void)
bool css_is_ha_repl_delayed(void)
int css_init(THREAD_ENTRY *thread_p, char *server_name, int server_name_length, int connection_id)
void css_cleanup_server_queues(unsigned int eid)
int css_get_client_id(THREAD_ENTRY *thread_p)
void css_get_thread_stats(UINT64 *stats_out)
bool css_is_shutdowning_server()
unsigned int css_send_reply_and_2_data_to_client(CSS_CONN_ENTRY *conn, unsigned int eid, char *reply, int reply_size, char *buffer1, int buffer1_size, char *buffer2, int buffer2_size)
enum ha_log_applier_state HA_LOG_APPLIER_STATE
unsigned int css_send_abort_to_client(CSS_CONN_ENTRY *conn, unsigned int eid)
void css_unset_ha_repl_delayed(void)
HA_SERVER_STATE css_ha_server_state(void)
int css_change_ha_server_state(THREAD_ENTRY *thread_p, HA_SERVER_STATE state, bool force, int timeout, bool heartbeat)
char * css_pack_server_name(const char *server_name, int *name_length)
void css_block_all_active_conn(unsigned short stop_phase)
unsigned int css_send_reply_and_3_data_to_client(CSS_CONN_ENTRY *conn, unsigned int eid, char *reply, int reply_size, char *buffer1, int buffer1_size, char *buffer2, int buffer2_size, char *buffer3, int buffer3_size)
int css_check_ha_server_state_for_client(THREAD_ENTRY *thread_p, int whence)
struct css_conn_entry * css_get_current_conn_entry(void)
int css_job_queues_start_scan(THREAD_ENTRY *thread_p, int show_type, DB_VALUE **arg_values, int arg_cnt, void **ptr)
void css_start_shutdown_server()
int css_get_ha_num_of_hosts(void)
char * css_add_client_version_string(THREAD_ENTRY *thread_p, const char *version_string)
void css_set_thread_info(THREAD_ENTRY *thread_p, int client_id, int rid, int tran_index, int net_request_index)
enum ha_server_state HA_SERVER_STATE
#define THREAD_CALLING_CONVENTION
size_t css_get_num_request_workers(void)
size_t css_get_num_total_workers(void)
unsigned int css_send_data_to_client(CSS_CONN_ENTRY *conn, unsigned int eid, char *buffer, int buffer_size)
void css_end_server_request(CSS_CONN_ENTRY *conn)
unsigned int css_send_error_to_client(CSS_CONN_ENTRY *conn, unsigned int eid, char *buffer, int buffer_size)