26#ifndef METADATA_CACHE_CLUSTER_METADATA_INCLUDED
27#define METADATA_CACHE_CLUSTER_METADATA_INCLUDED
98 &metadata_server)
noexcept override;
103 void disconnect() noexcept
override { metadata_connection_.reset(); }
108 return metadata_connection_;
113 const unsigned router_id,
118 const unsigned router_id)
override;
124 std::optional<metadata_cache::metadata_server_t> find_rw_server(
125 const std::vector<metadata_cache::ManagedInstance> &instances);
127 std::optional<metadata_cache::metadata_server_t> find_rw_server(
128 const std::vector<metadata_cache::ManagedCluster> &clusters);
130 std::optional<std::chrono::seconds>
132 return router_options_.get_stats_updates_frequency();
155 int connection_attempts_;
165std::string
as_string(
const char *input_str);
169 const size_t classic_port_column,
170 const size_t x_port_column);
173 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:153
std::vector< const char * > Row
Definition: mysql_session.h:157
Definition: cluster_metadata.h:159
mysql_ssl_mode
Definition: mysql.h:272
static void do_connect(struct st_command *command)
Definition: mysqltest.cc:6654
Definition: cluster_metadata.h:51
Definition: group_replication_metadata.h:38
SSL connection related options.
Definition: datatypes.h:39