26#ifndef METADATA_CACHE_CLUSTER_METADATA_INCLUDED
27#define METADATA_CACHE_CLUSTER_METADATA_INCLUDED
96 &metadata_server)
noexcept override;
101 void disconnect() noexcept
override { metadata_connection_.reset(); }
106 return metadata_connection_;
111 const unsigned router_id,
116 const unsigned router_id)
override;
122 std::optional<metadata_cache::metadata_server_t> find_rw_server(
123 const std::vector<metadata_cache::ManagedInstance> &instances);
125 std::optional<metadata_cache::metadata_server_t> find_rw_server(
126 const std::vector<metadata_cache::ManagedCluster> &clusters);
128 std::optional<std::chrono::seconds>
130 return router_options_.get_stats_updates_frequency();
153 int connection_attempts_;
163std::string
as_string(
const char *input_str);
167 const size_t classic_port_column,
168 const size_t x_port_column);
171 const std::string &attributes);
Represents the Router options in v2_routers view in the metadata schema.
Definition: router_options.h:58
Defines an IP address with port number
Definition: tcp_address.h:40
Definition: mysql_session.h:154
std::vector< const char * > Row
Definition: mysql_session.h:158
Definition: cluster_metadata.h:159
mysql_ssl_mode
Definition: mysql.h:272
static void do_connect(struct st_command *command)
Definition: mysqltest.cc:6667
Definition: cluster_metadata.h:49
Definition: group_replication_metadata.h:38
SSL connection related options.
Definition: datatypes.h:34