CUBRID Engine  latest
master_request.h File Reference
#include "connection_defs.h"
#include "master_util.h"
Include dependency graph for master_request.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void css_process_info_request (CSS_CONN_ENTRY *conn)
 
void css_process_stop_shutdown (void)
 
void css_process_start_shutdown (SOCKET_QUEUE_ENTRY *sock_entq, int timeout, char *buffer)
 
void css_process_heartbeat_request (CSS_CONN_ENTRY *conn)
 
void css_remove_entry_by_conn (CSS_CONN_ENTRY *conn_p, SOCKET_QUEUE_ENTRY **anchor_p)
 
void css_master_cleanup (int sig)
 
SOCKET_QUEUE_ENTRYcss_return_entry_of_server (char *name_p, SOCKET_QUEUE_ENTRY *anchor_p)
 
SOCKET_QUEUE_ENTRYcss_add_request_to_socket_queue (CSS_CONN_ENTRY *conn_p, int info_p, char *name_p, SOCKET fd, int fd_type, int pid, SOCKET_QUEUE_ENTRY **anchor_p)
 
SOCKET_QUEUE_ENTRYcss_return_entry_by_conn (CSS_CONN_ENTRY *conn_p, SOCKET_QUEUE_ENTRY **anchor_p)
 

Variables

SOCKET css_Master_socket_fd [2]
 
struct timeval * css_Master_timeout
 
int css_Master_timeout_value_in_seconds
 
int css_Master_timeout_value_in_microseconds
 
time_t css_Start_time
 
int css_Total_server_count
 
int css_Total_request_count
 
SOCKET_QUEUE_ENTRYcss_Master_socket_anchor
 
pthread_mutex_t css_Master_socket_anchor_lock
 

Function Documentation

void css_process_info_request ( CSS_CONN_ENTRY conn)

Definition at line 1855 of file master_request.c.

References ACTIVATE_HEARTBEAT, CANCEL_SHUTDOWN, css_cleanup_info_connection(), css_process_activate_heartbeat(), css_process_all_count_info(), css_process_all_list_info(), css_process_deact_confirm_no_server(), css_process_deact_confirm_stop_all(), css_process_deact_stop_all(), css_process_deactivate_heartbeat(), css_process_get_server_ha_mode(), css_process_ha_admin_info(), css_process_ha_deregister_by_args(), css_process_ha_deregister_by_pid(), css_process_ha_node_list_info(), css_process_ha_ping_host_info(), css_process_ha_process_list_info(), css_process_ha_start_util_process(), css_process_is_registered_ha_proc(), css_process_kill_all_ha_process(), css_process_kill_immediate(), css_process_kill_master(), css_process_kill_slave(), css_process_reconfig_heartbeat(), css_process_request_count_info(), css_process_server_count_info(), css_process_server_list_info(), css_process_server_state(), css_process_shutdown(), css_process_shutdown_time_info(), css_process_start_time_info(), css_process_stop_shutdown(), css_receive_data(), css_receive_request(), DEACT_CONFIRM_NO_SERVER, DEACT_CONFIRM_STOP_ALL, DEACT_STOP_ALL, DEACTIVATE_HEARTBEAT, DEREGISTER_HA_PROCESS_BY_ARGS, DEREGISTER_HA_PROCESS_BY_PID, free_and_init, GET_ALL_COUNT, GET_ALL_LIST, GET_HA_ADMIN_INFO, GET_HA_NODE_LIST, GET_HA_NODE_LIST_VERBOSE, GET_HA_PING_HOST_INFO, GET_HA_PROCESS_LIST, GET_HA_PROCESS_LIST_VERBOSE, GET_REQUEST_COUNT, GET_SERVER_COUNT, GET_SERVER_HA_MODE, GET_SERVER_LIST, GET_SERVER_STATE, GET_SHUTDOWN_TIME, GET_START_TIME, IS_REGISTERED_HA_PROC, KILL_ALL_HA_PROCESS, KILL_MASTER_SERVER, KILL_SERVER_IMMEDIATE, KILL_SLAVE_SERVER, NO_ERRORS, NULL, rc, RECONFIG_HEARTBEAT, START_HA_UTIL_PROCESS, and START_SHUTDOWN.

Referenced by css_check_master_socket_input().

Here is the caller graph for this function:

void css_process_start_shutdown ( SOCKET_QUEUE_ENTRY sock_entq,
int  timeout,
char *  buffer 
)
SOCKET_QUEUE_ENTRY* css_return_entry_by_conn ( CSS_CONN_ENTRY conn_p,
SOCKET_QUEUE_ENTRY **  anchor_p 
)
SOCKET_QUEUE_ENTRY* css_return_entry_of_server ( char *  name_p,
SOCKET_QUEUE_ENTRY anchor_p 
)

Variable Documentation

struct timeval* css_Master_timeout
int css_Master_timeout_value_in_microseconds

Definition at line 113 of file master.c.

Referenced by css_master_loop().

int css_Master_timeout_value_in_seconds

Definition at line 112 of file master.c.

Referenced by css_master_loop().

time_t css_Start_time

Definition at line 118 of file master.c.

Referenced by css_process_start_time_info(), and main().

int css_Total_request_count

Definition at line 119 of file master.c.

Referenced by css_process_new_connection(), and css_process_request_count_info().

int css_Total_server_count