|
| | ClusterMetadataGR (const MetadataSchemaVersion &schema_version, MySQLSession *mysql, mysql_harness::SocketOperationsBase *sockops=mysql_harness::SocketOperations::instance()) |
| |
| | ~ClusterMetadataGR () override=default |
| |
| std::string | get_cluster_type_specific_id () override |
| |
| void | require_cluster_is_ok () override |
| | Verify that host is a valid cluster member (either Group Replication or ReplicaSet cluster) More...
|
| |
| std::vector< std::tuple< std::string, unsigned long > > | fetch_cluster_hosts () override |
| |
| | ClusterMetadata (const MetadataSchemaVersion &schema_version, MySQLSession *mysql, mysql_harness::SocketOperationsBase *sockops=mysql_harness::SocketOperations::instance()) |
| |
| virtual | ~ClusterMetadata ()=default |
| |
| virtual mysqlrouter::ClusterType | get_type ()=0 |
| |
| virtual void | verify_router_id_is_ours (const uint32_t router_id, const std::string &hostname_override="")=0 |
| | Checks if Router with given id is already registered in metadata database, and belongs to our machine. More...
|
| |
| virtual uint32_t | register_router (const std::string &router_name, const bool overwrite, const std::string &hostname_override="")=0 |
| | Registers Router in metadata database. More...
|
| |
| virtual void | update_router_info (const uint32_t router_id, const std::string &cluster_id, const std::string &target_cluster, const std::string &rw_endpoint, const std::string &ro_endpoint, const std::string &rw_x_endpoint, const std::string &ro_x_endpoint, const std::string &username)=0 |
| |
| virtual std::vector< std::string > | get_routing_mode_queries ()=0 |
| |
| virtual void | require_metadata_is_ok () |
| | Verify that host is a valid metadata server. More...
|
| |
| virtual ClusterInfo | fetch_metadata_servers ()=0 |
| |
| virtual std::vector< std::string > | get_grant_statements (const std::string &new_accounts) const =0 |
| |
| MySQLSession & | get_session () |
| |
| virtual uint64_t | get_view_id (const std::string &) |
| |