![]() |
MySQL 9.2.0
Source Code Documentation
|
Class to track the state and usage data of Replication features. More...
#include <rpl_opt_tracker.h>
Public Member Functions | |
Rpl_opt_tracker (mysql_service_registry_registration_t *srv_registry_registration, mysql_service_registry_registration_t *srv_registry_registration_no_lock) | |
virtual | ~Rpl_opt_tracker () |
Rpl_opt_tracker & | operator= (const Rpl_opt_tracker &info) |
Rpl_opt_tracker (const Rpl_opt_tracker &info) | |
void | worker () |
The thread worker that periodically tracks the replication features. More... | |
void | start_worker () |
Start the thread that periodically tracks the replication features. More... | |
void | stop_worker () |
Stop the thread that periodically tracks the replication features. More... | |
void | track_replication_replica (bool enabled) |
Tracks the Replication Replica feature, including the usage data. More... | |
Private Member Functions | |
void | track_binary_log_internal (bool enabled) |
Tracks the Binary Log feature, including the usage data. More... | |
void | track_replication_replica_internal (bool enabled) |
Tracks the Replication Replica feature, including the usage data. More... | |
void | track_group_replication_usage_internal (bool enabled) |
Tracks the Group Replication feature usage data. More... | |
bool | acquire_option_tracker_service () |
Helper method to acquire the mysql_option_tracker_option service. More... | |
void | release_option_tracker_service () |
Helper method to release the mysql_option_tracker_option service. More... | |
Static Private Member Functions | |
static bool | is_replication_replica_enabled () |
Helper method to get Replication Replica feature status. More... | |
Static Private Attributes | |
static constexpr const Timeout_type | s_tracking_period {3600} |
static const std::string | s_c_name_mysql_server {"mysql_server"} |
static const std::string | s_f_name_binary_log {"Binary Log"} |
static const std::string | s_f_name_replication_replica |
static const std::string | s_f_name_group_replication |
Class to track the state and usage data of Replication features.
Rpl_opt_tracker::Rpl_opt_tracker | ( | mysql_service_registry_registration_t * | srv_registry_registration, |
mysql_service_registry_registration_t * | srv_registry_registration_no_lock | ||
) |
|
virtual |
Rpl_opt_tracker::Rpl_opt_tracker | ( | const Rpl_opt_tracker & | info | ) |
|
private |
Helper method to acquire the mysql_option_tracker_option service.
false | Successful |
true | Error |
|
staticprivate |
Helper method to get Replication Replica feature status.
true | enabled |
false | disabled |
Rpl_opt_tracker & Rpl_opt_tracker::operator= | ( | const Rpl_opt_tracker & | info | ) |
|
private |
Helper method to release the mysql_option_tracker_option service.
void Rpl_opt_tracker::start_worker | ( | ) |
Start the thread that periodically tracks the replication features.
void Rpl_opt_tracker::stop_worker | ( | ) |
Stop the thread that periodically tracks the replication features.
|
private |
Tracks the Binary Log feature, including the usage data.
It only updates usage data if the feature is enabled. Internal method to be used after the mysql_option_tracker_option service is acquired.
enabled | true: tracks as enabled false: tracks as disabled |
|
private |
Tracks the Group Replication feature usage data.
It only updates usage data if the feature is enabled.
enabled | true: tracks as enabled false: tracks as disabled |
void Rpl_opt_tracker::track_replication_replica | ( | bool | enabled | ) |
Tracks the Replication Replica feature, including the usage data.
It only updates usage data if the feature is enabled.
enabled | true: tracks as enabled false: tracks as disabled |
|
private |
Tracks the Replication Replica feature, including the usage data.
It only updates usage data if the feature is enabled. Internal method to be used after the mysql_option_tracker_option service is acquired.
enabled | true: tracks as enabled false: tracks as disabled |
void Rpl_opt_tracker::worker | ( | ) |
The thread worker that periodically tracks the replication features.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticconstexprprivate |