CUBRID Engine
latest
|
#include <master_heartbeat.h>
Public Attributes | |
pthread_mutex_t | lock |
SOCKET | sfd |
HB_NODE_STATE_TYPE | state |
char | group_id [HB_MAX_GROUP_ID_LEN] |
char | host_name [CUB_MAXHOSTNAMELEN] |
int | num_nodes |
HB_NODE_ENTRY * | nodes |
HB_NODE_ENTRY * | myself |
HB_NODE_ENTRY * | master |
bool | shutdown |
bool | hide_to_demote |
bool | is_isolated |
bool | is_ping_check_enabled |
HB_PING_HOST_ENTRY * | ping_hosts |
int | num_ping_hosts |
HB_UI_NODE_ENTRY * | ui_nodes |
int | num_ui_nodes |
Definition at line 241 of file master_heartbeat.h.
char hb_cluster::group_id[HB_MAX_GROUP_ID_LEN] |
Definition at line 248 of file master_heartbeat.h.
Referenced by hb_cluster_load_group_and_node_list(), hb_cluster_receive_heartbeat(), hb_help_sprint_nodes_info(), hb_is_heartbeat_valid(), and hb_set_net_header().
bool hb_cluster::hide_to_demote |
Definition at line 258 of file master_heartbeat.h.
Referenced by hb_cluster_initialize(), hb_cluster_job_calc_score(), hb_cluster_job_demote(), hb_cluster_job_heartbeat(), and hb_cluster_receive_heartbeat().
char hb_cluster::host_name[CUB_MAXHOSTNAMELEN] |
Definition at line 249 of file master_heartbeat.h.
Referenced by hb_add_node_to_cluster(), hb_cluster_cleanup(), hb_cluster_initialize(), hb_cluster_load_group_and_node_list(), hb_cluster_receive_heartbeat(), hb_cluster_request_heartbeat_to_all(), hb_get_node_info_string(), hb_help_sprint_nodes_info(), and hb_return_node_by_name_except_me().
bool hb_cluster::is_isolated |
Definition at line 259 of file master_heartbeat.h.
Referenced by hb_cleanup_conn_and_start_process(), hb_cluster_initialize(), hb_cluster_job_calc_score(), hb_cluster_job_demote(), hb_resource_job_confirm_start(), and hb_thread_check_disk_failure().
bool hb_cluster::is_ping_check_enabled |
Definition at line 260 of file master_heartbeat.h.
Referenced by hb_cluster_initialize(), hb_cluster_job_check_ping(), hb_cluster_job_check_valid_ping_server(), hb_get_ping_host_info_string(), and hb_help_sprint_ping_host_info().
pthread_mutex_t hb_cluster::lock |
Definition at line 243 of file master_heartbeat.h.
Referenced by hb_check_request_eligibility(), hb_cluster_cleanup(), hb_cluster_initialize(), hb_cluster_job_calc_score(), hb_cluster_job_check_ping(), hb_cluster_job_check_valid_ping_server(), hb_cluster_job_demote(), hb_cluster_job_failback(), hb_cluster_job_failover(), hb_cluster_job_heartbeat(), hb_cluster_receive_heartbeat(), hb_get_node_info_string(), hb_get_ping_host_info_string(), hb_reload_config(), hb_resource_receive_changemode(), and hb_thread_check_disk_failure().
HB_NODE_ENTRY* hb_cluster::master |
Definition at line 255 of file master_heartbeat.h.
Referenced by hb_cluster_calc_score(), hb_cluster_cleanup(), hb_cluster_initialize(), hb_cluster_job_calc_score(), hb_cluster_job_failover(), and hb_reload_config().
HB_NODE_ENTRY* hb_cluster::myself |
Definition at line 254 of file master_heartbeat.h.
Referenced by hb_cluster_calc_score(), hb_cluster_cleanup(), hb_cluster_initialize(), hb_cluster_is_isolated(), hb_cluster_is_received_heartbeat_from_all(), hb_cluster_job_calc_score(), hb_cluster_job_demote(), hb_cluster_job_failback(), hb_cluster_job_failover(), hb_cluster_load_group_and_node_list(), hb_reload_config(), and hb_set_net_header().
HB_NODE_ENTRY* hb_cluster::nodes |
Definition at line 252 of file master_heartbeat.h.
Referenced by hb_add_node_to_cluster(), hb_check_ping(), hb_check_request_eligibility(), hb_cluster_calc_score(), hb_cluster_cleanup(), hb_cluster_initialize(), hb_cluster_is_isolated(), hb_cluster_is_received_heartbeat_from_all(), hb_cluster_job_demote(), hb_cluster_request_heartbeat_to_all(), hb_get_node_info_string(), hb_help_sprint_nodes_info(), hb_reload_config(), hb_return_node_by_name(), and hb_return_node_by_name_except_me().
int hb_cluster::num_nodes |
Definition at line 251 of file master_heartbeat.h.
Referenced by hb_cluster_initialize(), hb_get_node_info_string(), and hb_reload_config().
int hb_cluster::num_ping_hosts |
Definition at line 263 of file master_heartbeat.h.
Referenced by hb_cluster_check_valid_ping_server(), hb_cluster_cleanup(), hb_cluster_initialize(), hb_cluster_job_calc_score(), hb_cluster_job_check_ping(), hb_cluster_job_check_valid_ping_server(), hb_cluster_job_demote(), hb_cluster_job_failback(), hb_cluster_job_failover(), hb_get_ping_host_info_string(), and hb_reload_config().
int hb_cluster::num_ui_nodes |
Definition at line 266 of file master_heartbeat.h.
Referenced by hb_add_ui_node(), hb_cluster_cleanup(), hb_cluster_initialize(), hb_get_node_info_string(), and hb_remove_ui_node().
HB_PING_HOST_ENTRY* hb_cluster::ping_hosts |
Definition at line 262 of file master_heartbeat.h.
Referenced by hb_add_ping_host(), hb_cluster_check_valid_ping_server(), hb_cluster_cleanup(), hb_cluster_initialize(), hb_cluster_job_check_ping(), hb_get_ping_host_info_string(), hb_help_sprint_ping_host_info(), and hb_reload_config().
SOCKET hb_cluster::sfd |
Definition at line 245 of file master_heartbeat.h.
Referenced by hb_cluster_cleanup(), hb_cluster_initialize(), hb_cluster_send_heartbeat_internal(), and hb_thread_cluster_reader().
bool hb_cluster::shutdown |
Definition at line 257 of file master_heartbeat.h.
Referenced by hb_cluster_cleanup(), hb_cluster_initialize(), hb_cluster_receive_heartbeat(), hb_master_init(), and hb_thread_cluster_reader().
HB_NODE_STATE_TYPE hb_cluster::state |
Definition at line 247 of file master_heartbeat.h.
Referenced by hb_cluster_calc_score(), hb_cluster_cleanup(), hb_cluster_initialize(), hb_cluster_job_calc_score(), hb_cluster_job_check_ping(), hb_cluster_job_demote(), hb_cluster_job_failback(), hb_cluster_job_failover(), hb_cluster_load_group_and_node_list(), hb_cluster_send_heartbeat_internal(), hb_get_node_info_string(), hb_help_sprint_nodes_info(), hb_help_sprint_processes_info(), and hb_resource_receive_changemode().
HB_UI_NODE_ENTRY* hb_cluster::ui_nodes |
Definition at line 265 of file master_heartbeat.h.
Referenced by hb_add_ui_node(), hb_cluster_cleanup(), hb_cluster_initialize(), hb_get_node_info_string(), and hb_return_ui_node().