|
void * | operator new (size_t size, const std::nothrow_t &) noexcept |
|
void | operator delete (void *ptr, const std::nothrow_t &) noexcept |
|
void * | operator new (size_t size) noexcept |
| Allocate memory on the heap with instrumented memory allocation, so that memory consumption can be tracked. More...
|
|
void | operator delete (void *ptr) noexcept |
| Deallocate memory on the heap with instrumented memory allocation, so that memory consumption can be tracked. More...
|
|
| Group_member_info (PSI_mutex_key psi_mutex_key_arg=key_GR_LOCK_group_member_info_update_lock) |
| Group_member_info empty constructor. More...
|
|
| Group_member_info (const char *hostname_arg, uint port_arg, const char *uuid_arg, int write_set_extraction_algorithm, const std::string &gcs_member_id_arg, Group_member_info::Group_member_status status_arg, Member_version &member_version_arg, ulonglong gtid_assignment_block_size_arg, Group_member_info::Group_member_role role_arg, bool in_single_primary_mode, bool has_enforces_update_everywhere_checks, uint member_weight_arg, uint lower_case_table_names_arg, bool default_table_encryption_arg, const char *recovery_endpoints_arg, const char *view_change_uuid_arg, bool allow_single_leader, bool preemptive_garbage_collection, PSI_mutex_key psi_mutex_key_arg=key_GR_LOCK_group_member_info_update_lock) |
| Group_member_info constructor. More...
|
|
| Group_member_info (Group_member_info &other) |
| Copy constructor. More...
|
|
| Group_member_info (const uchar *data, size_t len, PSI_mutex_key psi_mutex_key_arg=key_GR_LOCK_group_member_info_update_lock) |
| Group_member_info raw data constructor. More...
|
|
| ~Group_member_info () override |
| Destructor. More...
|
|
void | update (const char *hostname_arg, uint port_arg, const char *uuid_arg, int write_set_extraction_algorithm, const std::string &gcs_member_id_arg, Group_member_info::Group_member_status status_arg, Member_version &member_version_arg, ulonglong gtid_assignment_block_size_arg, Group_member_info::Group_member_role role_arg, bool in_single_primary_mode, bool has_enforces_update_everywhere_checks, uint member_weight_arg, uint lower_case_table_names_arg, bool default_table_encryption_arg, const char *recovery_endpoints_arg, const char *view_change_uuid_arg, bool allow_single_leader, bool preemptive_garbage_collection) |
| Update Group_member_info. More...
|
|
void | update (Group_member_info &other) |
| Update Group_member_info. More...
|
|
std::string | get_hostname () |
|
uint | get_port () |
|
std::string | get_uuid () |
|
Gcs_member_identifier | get_gcs_member_id () |
|
Group_member_status | get_recovery_status () |
|
Group_member_role | get_role () |
|
const char * | get_member_role_string () |
|
Member_version | get_member_version () |
|
std::string | get_gtid_executed () |
|
std::string | get_gtid_purged () |
|
std::string | get_gtid_retrieved () |
|
uint | get_write_set_extraction_algorithm () |
|
const char * | get_write_set_extraction_algorithm_name () |
|
ulonglong | get_gtid_assignment_block_size () |
|
uint32 | get_configuration_flags () |
|
void | set_primary_mode_flag (bool in_primary_mode) |
| Set the primary flag. More...
|
|
void | set_enforces_update_everywhere_checks_flag (bool enforce_everywhere_checks) |
| Set the enforces_update_everywhere_checks flag. More...
|
|
uint | get_lower_case_table_names () |
|
bool | get_default_table_encryption () |
|
bool | in_primary_mode () |
|
bool | has_enforces_update_everywhere_checks () |
|
void | update_recovery_status (Group_member_status new_status) |
| Updates this object recovery status. More...
|
|
void | update_gtid_sets (std::string &executed_gtids, std::string &purged_gtids, std::string &retrieve_gtids) |
| Updates this object GTID sets. More...
|
|
void | set_role (Group_member_role new_role) |
| Updates this object member role. More...
|
|
bool | has_greater_version (Group_member_info *other) |
| Return true if member version is higher than other member version. More...
|
|
bool | has_lower_uuid (Group_member_info *other) |
| Return true if server uuid is lower than other member server uuid. More...
|
|
bool | has_greater_weight (Group_member_info *other) |
| Return true if member weight is higher than other member weight. More...
|
|
bool | operator== (Group_member_info &other) |
| Redefinition of operate ==, which operate upon the uuid. More...
|
|
void | set_unreachable () |
| Sets this member as unreachable. More...
|
|
void | set_reachable () |
| Sets this member as reachable. More...
|
|
bool | is_unreachable () |
| Return true if this has been flagged as unreachable. More...
|
|
void | enable_conflict_detection () |
| Update this member conflict detection to true. More...
|
|
void | disable_conflict_detection () |
| Update this member conflict detection to false. More...
|
|
bool | is_conflict_detection_enabled () |
| Return true if conflict detection is enable on this member. More...
|
|
void | set_member_weight (uint new_member_weight) |
| Update member weight. More...
|
|
uint | get_member_weight () |
| Return member weight. More...
|
|
bool | is_group_action_running () |
|
void | set_is_group_action_running (bool is_running) |
| Sets if the member is currently running a group action. More...
|
|
bool | is_primary_election_running () |
|
void | set_is_primary_election_running (bool is_running) |
| Sets if the member is currently running a primary election. More...
|
|
std::string | get_recovery_endpoints () |
| List of member advertised recovery endpoints. More...
|
|
void | set_recovery_endpoints (const char *endpoints) |
| Save list of member advertised recovery endpoints. More...
|
|
std::string | get_view_change_uuid () |
| Get UID used when logging view change events. More...
|
|
bool | get_allow_single_leader () |
|
const std::string & | get_group_action_running_name () |
| Get group action name if running on the member. More...
|
|
void | set_group_action_running_name (const std::string &group_action_running_name) |
| Set group action name if running on the member. More...
|
|
const std::string & | get_group_action_running_description () |
| Get group action description if running on the member. More...
|
|
void | set_group_action_running_description (const std::string &group_action_running_description) |
| Set group action description if running on the member. More...
|
|
void | set_view_change_uuid (const char *view_change_cnf) |
| Save member view change uuid. More...
|
|
bool | get_preemptive_garbage_collection () |
| Get the value of 'group_replication_preemptive_garbage_collection' option on this member. More...
|
|
virtual | ~Plugin_gcs_message ()=default |
|
int | get_version () |
|
unsigned short | get_header_length () |
|
enum_cargo_type | get_cargo_type () const |
|
unsigned long long | get_msg_length () |
|
void | encode (std::vector< unsigned char > *buffer) const |
| Encodes the contents of this instance into the buffer. More...
|
|
void | decode (const unsigned char *buffer, size_t length) |
| Decodes the contents of the buffer and sets the field values according to the values decoded. More...
|
|
|
void | encode_payload (std::vector< unsigned char > *buffer) const override |
| Encodes the contents of this instance payload into the buffer. More...
|
|
void | decode_payload (const unsigned char *buffer, const unsigned char *) override |
| Decodes the contents of the buffer and sets the payload field values according to the values decoded. More...
|
|
| Plugin_gcs_message (enum_cargo_type cargo_type) |
| Plugin_gcs_message constructor. More...
|
|
void | encode_header (std::vector< unsigned char > *buffer) const |
| Encodes the header of this instance into the buffer. More...
|
|
void | decode_header (const unsigned char **slider) |
| Decodes the header of the buffer into this instance. More...
|
|
void | encode_payload_item_type_and_length (std::vector< unsigned char > *buffer, uint16 payload_item_type, unsigned long long payload_item_length) const |
| Encodes the given payload item type and length into the buffer. More...
|
|
void | encode_payload_item_char (std::vector< unsigned char > *buffer, uint16 type, unsigned char value) const |
| Encodes the given payload item (type, length and value) into the buffer as a char (1 byte). More...
|
|
void | encode_payload_item_int2 (std::vector< unsigned char > *buffer, uint16 type, uint16 value) const |
| Encodes the given payload item (type, length and value) into the buffer as a 2 bytes integer. More...
|
|
void | decode_payload_item_int2 (const unsigned char **buffer, uint16 *type, uint16 *value) |
| Decodes the given payload item (type, length and value) from the buffer as a 2 bytes integer. More...
|
|
void | encode_payload_item_int4 (std::vector< unsigned char > *buffer, uint16 type, uint32 value) const |
| Encodes the given payload item (type, length and value) into the buffer as a 4 bytes integer. More...
|
|
void | decode_payload_item_int4 (const unsigned char **buffer, uint16 *type, uint32 *value) |
| Decodes the given payload item (type, length and value) from the buffer as a 4 bytes integer. More...
|
|
void | encode_payload_item_int8 (std::vector< unsigned char > *buffer, uint16 type, ulonglong value) const |
| Encodes the given payload item (type, length and value) into the buffer as a 8 bytes integer. More...
|
|
void | encode_payload_item_string (std::vector< unsigned char > *buffer, uint16 type, const char *value, unsigned long long length) const |
| Encodes the given payload item (type, length and value) into the buffer as a char array (variable size). More...
|
|
void | decode_payload_item_string (const unsigned char **buffer, uint16 *type, std::string *value, unsigned long long *length) |
| Decodes the given payload item (type, length and value) from the buffer as a char array (variable size). More...
|
|
void | encode_payload_item_bytes (std::vector< unsigned char > *buffer, uint16 type, const unsigned char *value, unsigned long long length) const |
| Encodes the given payload item (type, length and value) into the buffer as a byte buffer (variable size). More...
|
|
void | decode_payload_item_bytes (const unsigned char **buffer, uint16 *type, unsigned char *value, unsigned long long *length) |
| Decodes the given payload item (type, length and value) from the buffer as a byte buffer (variable size). More...
|
|
|
static const int | PLUGIN_GCS_MESSAGE_VERSION = 1 |
| The protocol version number. More...
|
|
static const unsigned int | WIRE_VERSION_SIZE = 4 |
| The protocol version number. More...
|
|
static const unsigned int | WIRE_HD_LEN_SIZE = 2 |
| The on-the-wire size of the header length field. More...
|
|
static const unsigned int | WIRE_MSG_LEN_SIZE = 8 |
| The on-the-wire size of the message size field. More...
|
|
static const unsigned int | WIRE_CARGO_TYPE_SIZE = 2 |
| The on-the-wire size of the cargo type field. More...
|
|
static const unsigned int | WIRE_FIXED_HEADER_SIZE |
| The on-the-wire size of the fixed header. More...
|
|
static const unsigned int | WIRE_PAYLOAD_ITEM_TYPE_SIZE = 2 |
| The on-the-wire size of the each payload item type field. More...
|
|
static const unsigned int | WIRE_PAYLOAD_ITEM_LEN_SIZE = 8 |
| The on-the-wire size of the each payload item size field. More...
|
|
static const unsigned int | WIRE_PAYLOAD_ITEM_HEADER_SIZE |
| The on-the-wire size of the payload item header. More...
|
|
static int64_t | get_sent_timestamp (const unsigned char *buffer, size_t length, const uint16 timestamp_payload_item_type) |
| Return the time at which the message contained in the buffer was sent. More...
|
|
static void | decode_payload_item_type_and_length (const unsigned char **buffer, uint16 *payload_item_type, unsigned long long *payload_item_length) |
| Decodes the given payload item type and length from the buffer. More...
|
|
static void | decode_payload_item_char (const unsigned char **buffer, uint16 *type, unsigned char *value) |
| Decodes the given payload item (type, length and value) from the buffer as a char (1 byte). More...
|
|
static void | decode_payload_item_int8 (const unsigned char **buffer, uint16 *type, uint64 *value) |
| Decodes the given payload item (type, length and value) from the buffer as a 8 bytes integer. More...
|
|