#include <rpl_async_conn_failover_configuration_propagation.h>
◆ Rpl_acf_configuration_handler()
Rpl_acf_configuration_handler::Rpl_acf_configuration_handler |
( |
| ) |
|
◆ ~Rpl_acf_configuration_handler()
Rpl_acf_configuration_handler::~Rpl_acf_configuration_handler |
( |
| ) |
|
|
virtual |
◆ deinit()
bool Rpl_acf_configuration_handler::deinit |
( |
| ) |
|
|
private |
Unregister group_replication_message_service_recv service.
- Returns
- function return value which determines if was: false Successful true Error
◆ delete_channel_status()
Delete channel status.
- Parameters
-
[in] | channel | the channel name. |
[in] | key | the variable whose status to be send. |
◆ force_my_replication_failover_channels_configuration_on_all_members()
bool Rpl_acf_configuration_handler::force_my_replication_failover_channels_configuration_on_all_members |
( |
| ) |
|
Collect and broadcast the replication failover channels configuration in a serialized protobuf_replication_asynchronous_connection_failover::SourceAndManagedAndStatusList message, that will override the configuration on all group members.
- Returns
- the operation status
- Return values
-
◆ get_configuration()
bool Rpl_acf_configuration_handler::get_configuration |
( |
std::string & |
serialized_configuration | ) |
|
Get data stored in mysql.replication_asynchronous_connection_failover or mysql.replication_asynchronous_connection_failover_managed table in protobuf serialized string format.
- Parameters
-
[out] | serialized_configuration | save in protobuf serialized string format. |
- Returns
- function return value which determines: false Successful true Error
◆ init()
bool Rpl_acf_configuration_handler::init |
( |
| ) |
|
Initialize and configure group_replication_message_service_recv service so member can receive and process data from group members.
- Returns
- function return value which determines if was: false Successful true Error
◆ receive()
bool Rpl_acf_configuration_handler::receive |
( |
const char * |
tag, |
|
|
const unsigned char * |
data, |
|
|
size_t |
data_length |
|
) |
| |
Receive data sent by group replication group member.
- Parameters
-
[in] | tag | identifier which determine type of data received. |
[in] | data | data received. |
[in] | data_length | size of data received. |
- Returns
- function return value which determines if read was: false Successful true Error
◆ receive_channel_status()
bool Rpl_acf_configuration_handler::receive_channel_status |
( |
const unsigned char * |
data, |
|
|
size_t |
data_length |
|
) |
| |
|
private |
Receive SOURCE_CONNECTION_AUTO_FAILOVER value of CHANGE REPLICATION SOURCE command data sent by group replication group member.
- Parameters
-
[in] | data | data received. |
[in] | data_length | size of data received. |
- Returns
- function return value which determines if read was: false Successful true Error
◆ receive_failover()
bool Rpl_acf_configuration_handler::receive_failover |
( |
const unsigned char * |
data, |
|
|
size_t |
data_length |
|
) |
| |
|
private |
Receive mysql.replication_asynchronous_connection_failover table data sent by group replication group member.
- Parameters
-
[in] | data | data received. |
[in] | data_length | size of data received. |
- Returns
- function return value which determines if read was: false Successful true Error
◆ receive_failover_and_managed_and_status()
bool Rpl_acf_configuration_handler::receive_failover_and_managed_and_status |
( |
const unsigned char * |
data, |
|
|
size_t |
data_length |
|
) |
| |
|
private |
Receive mysql.replication_asynchronous_connection_failover and mysql.replication_asynchronous_connection_failover_managed table data sent by group replication group member.
- Parameters
-
[in] | data | data received. |
[in] | data_length | size of data received. |
- Returns
- function return value which determines if read was: false Successful true Error
◆ receive_managed()
bool Rpl_acf_configuration_handler::receive_managed |
( |
const unsigned char * |
data, |
|
|
size_t |
data_length |
|
) |
| |
|
private |
Receive mysql.replication_asynchronous_connection_failover_managed table data sent by group replication group member.
- Parameters
-
[in] | data | data received. |
[in] | data_length | size of data received. |
- Returns
- function return value which determines if read was: false Successful true Error
◆ reload_failover_channels_status()
void Rpl_acf_configuration_handler::reload_failover_channels_status |
( |
| ) |
|
Reload the failover channel status from runtime information.
◆ send()
bool Rpl_acf_configuration_handler::send |
( |
const char * |
tag, |
|
|
const char * |
data, |
|
|
size_t |
data_length |
|
) |
| |
|
private |
Send data to all group replication group members.
- Parameters
-
[in] | tag | identifier which determine type of data. |
[in] | data | data to be send |
[in] | data_length | size of data to be send. |
- Returns
- function return value which determines if read was: false Successful true Error
◆ send_channel_status()
bool Rpl_acf_configuration_handler::send_channel_status |
( |
const char * |
data, |
|
|
size_t |
data_length |
|
) |
| |
|
private |
Send SOURCE_CONNECTION_AUTO_FAILOVER value of CHANGE REPLICATION SOURCE command data to group replication group members.
- Parameters
-
[in] | data | data to be send |
[in] | data_length | size of data to be send. |
- Returns
- function return value which determines if read was: false Successful true Error
◆ send_channel_status_and_version_data()
Send variable status to its group replication group members.
- Parameters
-
[in] | channel | the channel name. |
[in] | key | the variable whose status to be send. |
[in] | status | the variable status to be send. |
- Returns
- function return value which determines: false Successful true Error
◆ send_failover()
bool Rpl_acf_configuration_handler::send_failover |
( |
const char * |
data, |
|
|
size_t |
data_length |
|
) |
| |
|
private |
Send mysql.replication_asynchronous_connection_failover table data to group replication group members.
- Parameters
-
[in] | data | data to be send |
[in] | data_length | size of data to be send. |
- Returns
- function return value which determines if read was: false Successful true Error
◆ send_failover_data()
Get stored data in mysql.replication_asynchronous_connection_failover table and send to its group replication group members.
- Parameters
-
[in] | table_op | Rpl_sys_table_access class object. |
- Returns
- function return value which determines: false Successful true Error
◆ send_managed()
bool Rpl_acf_configuration_handler::send_managed |
( |
const char * |
data, |
|
|
size_t |
data_length |
|
) |
| |
|
private |
Send mysql.replication_asynchronous_connection_failover_managed table data to group replication group members.
- Parameters
-
[in] | data | data to be send |
[in] | data_length | size of data to be send. |
- Returns
- function return value which determines if read was: false Successful true Error
◆ send_managed_data()
Get stored data in mysql.replication_asynchronous_connection_failover_managed table and send to its group replication group members.
- Parameters
-
[in] | table_op | Rpl_sys_table_access class object. |
- Returns
- function return value which determines: false Successful true Error
◆ send_table_data()
Get stored data in mysql.replication_asynchronous_connection_failover or mysql.replication_asynchronous_connection_failover_managed table and send to its group replication group members.
- Parameters
-
[in] | table_op | Rpl_sys_table_access class object. |
- Returns
- function return value which determines: false Successful true Error
◆ set_configuration()
bool Rpl_acf_configuration_handler::set_configuration |
( |
const std::vector< std::string > & |
exchanged_replication_failover_channels_serialized_configuration | ) |
|
Save data in mysql.replication_asynchronous_connection_failover or mysql.replication_asynchronous_connection_failover_managed table.
- Parameters
-
[in] | exchanged_replication_failover_channels_serialized_configuration | save data from serialized string format. |
- Returns
- function return value which determines: false Successful true Error
◆ set_failover_managed_internal()
Save data in mysql.replication_asynchronous_connection_failover_managed table.
- Parameters
-
[in] | configuration | the configuration in protobuf |
- Returns
- function return value which determines: false Successful true Error
◆ set_failover_sources_internal()
Save data in mysql.replication_asynchronous_connection_failover table.
- Parameters
-
[in] | configuration | the configuration in protobuf |
- Returns
- function return value which determines: false Successful true Error
◆ m_db
const std::string Rpl_acf_configuration_handler::m_db {"mysql"} |
|
private |
◆ m_message_tag
const std::vector<std::string> Rpl_acf_configuration_handler::m_message_tag |
|
private |
Initial value:{
"mysql_replication_asynchronous_connection_failover",
"mysql_replication_asynchronous_connection_managed",
"mysql_replication_asynchronous_connection_variable_status",
"mysql_replication_asynchronous_connection_failover_and_managed_and_"
"status"}
◆ m_rpl_failover_channels_status
◆ m_table_failover
const std::string Rpl_acf_configuration_handler::m_table_failover |
|
private |
Initial value:{
"replication_asynchronous_connection_failover"}
◆ m_table_failover_num_field
const uint Rpl_acf_configuration_handler::m_table_failover_num_field {6} |
|
private |
◆ m_table_managed
const std::string Rpl_acf_configuration_handler::m_table_managed |
|
private |
Initial value:{
"replication_asynchronous_connection_failover_managed"}
◆ m_table_managed_num_field
const uint Rpl_acf_configuration_handler::m_table_managed_num_field {4} |
|
private |
The documentation for this class was generated from the following files: