MySQL 8.0.39
Source Code Documentation
metadata_cache::ClusterTopology Class Reference

Represents a cluster (a GR group or AR members) and its metadata servers. More...

#include <metadata_cache_datatypes.h>

Public Types

using clusters_list_t = std::vector< ManagedCluster >
 

Public Member Functions

cluster_nodes_list_t get_all_members () const
 
void clear_all_members ()
 

Public Attributes

clusters_list_t clusters_data
 
std::optional< size_t > target_cluster_pos {}
 
metadata_servers_list_t metadata_servers
 
uint64_t view_id {0}
 Id of the view this metadata represents (used for AR and ClusterSets) More...
 
std::string name {}
 name of the ClusterSet or empty in case of standalone Cluster More...
 
std::optional< metadata_cache::metadata_server_twritable_server {}
 

Detailed Description

Represents a cluster (a GR group or AR members) and its metadata servers.

Member Typedef Documentation

◆ clusters_list_t

Member Function Documentation

◆ clear_all_members()

void metadata_cache::ClusterTopology::clear_all_members ( )
inline

◆ get_all_members()

cluster_nodes_list_t metadata_cache::ClusterTopology::get_all_members ( ) const
inline

Member Data Documentation

◆ clusters_data

clusters_list_t metadata_cache::ClusterTopology::clusters_data

◆ metadata_servers

metadata_servers_list_t metadata_cache::ClusterTopology::metadata_servers

◆ name

std::string metadata_cache::ClusterTopology::name {}

name of the ClusterSet or empty in case of standalone Cluster

◆ target_cluster_pos

std::optional<size_t> metadata_cache::ClusterTopology::target_cluster_pos {}

◆ view_id

uint64_t metadata_cache::ClusterTopology::view_id {0}

Id of the view this metadata represents (used for AR and ClusterSets)

◆ writable_server

std::optional<metadata_cache::metadata_server_t> metadata_cache::ClusterTopology::writable_server {}

The documentation for this class was generated from the following file: