26#ifndef ROUTER_CLUSTER_METADATA_INCLUDED
27#define ROUTER_CLUSTER_METADATA_INCLUDED
87 const uint32_t router_id,
const std::string &hostname_override =
"") = 0;
103 const std::string &router_name,
const bool overwrite,
104 const std::string &hostname_override =
"") = 0;
107 const uint32_t router_id,
const std::string &cluster_id,
108 const std::string &target_cluster,
const std::string &rw_endpoint,
109 const std::string &ro_endpoint,
const std::string &rw_split_endpoint,
110 const std::string &rw_x_endpoint,
const std::string &ro_x_endpoint,
111 const std::string &username) = 0;
148 const std::string &new_accounts)
const = 0;
150 virtual std::vector<std::tuple<std::string, unsigned long>>
156 const std::string & ) {
209 uint32_t router_id,
const std::string &hostname_override =
"")
override;
212 const uint32_t router_id,
const std::string &cluster_id,
213 const std::string &target_cluster,
const std::string &rw_endpoint,
214 const std::string &ro_endpoint,
const std::string &rw_split_endpoint,
215 const std::string &rw_x_endpoint,
const std::string &ro_x_endpoint,
216 const std::string &username)
override;
218 uint32_t
register_router(
const std::string &router_name,
const bool overwrite,
219 const std::string &hostname_override =
"")
override;
222 const std::string &new_accounts)
const override;
260 uint64_t
get_view_id(
const std::string &cluster_type_specific_id)
override;
263 const uint32_t router_id,
const std::string &cluster_id,
264 const std::string &target_cluster,
const std::string &rw_endpoint,
265 const std::string &ro_endpoint,
const std::string &rw_split_endpoint,
266 const std::string &rw_x_endpoint,
const std::string &ro_x_endpoint,
267 const std::string &username)
override;
301 const std::string & )
override;
306 uint32_t router_id,
const std::string &hostname_override =
"")
override;
309 const uint32_t router_id,
const std::string &cluster_id,
310 const std::string &target_cluster,
const std::string &rw_endpoint,
311 const std::string &ro_endpoint,
const std::string &rw_split_endpoint,
312 const std::string &rw_x_endpoint,
const std::string &ro_x_endpoint,
313 const std::string &username)
override;
315 uint32_t
register_router(
const std::string &router_name,
const bool overwrite,
316 const std::string &hostname_override =
"")
override;
319 const std::string &new_accounts)
const override;
Base class to allow multiple SocketOperations implementations (at least one "real" and one mock for t...
Definition: socket_operations.h:45
static SocketOperations * instance()
Definition: socket_operations.cc:42
Definition: mysql_session.h:153
Definition: instrumented_condition_variable.h:32
ClusterType
Definition: cluster_metadata.h:140
InstanceType
Definition: cluster_metadata.h:199
std::unique_ptr< ClusterMetadata > create_metadata(const MetadataSchemaVersion &schema_version, MySQLSession *mysql, const OptionsMap &options, mysql_harness::SocketOperationsBase *sockops)
Definition: cluster_metadata.cc:1165
std::map< std::string, std::string > OptionsMap
Definition: cluster_metadata.h:57
Definition: options.cc:57
#define ROUTER_CLUSTER_EXPORT
Definition: router_cluster_export.h:15
Definition: cluster_metadata.h:40
bool is_primary
Definition: cluster_metadata.h:49
std::string get_cluster_type_specific_id() const
Definition: cluster_metadata.h:51
std::string cluster_type_specific_id
Definition: cluster_metadata.h:44
std::string cluster_id
Definition: cluster_metadata.h:42
std::vector< std::string > metadata_servers
Definition: cluster_metadata.h:41
std::string name
Definition: cluster_metadata.h:46