MySQL 8.0.39
Source Code Documentation
GRMetadataBackendV2 Class Reference
Inheritance diagram for GRMetadataBackendV2:
[legend]

Public Member Functions

 GRMetadataBackendV2 (GRClusterMetadata *metadata, ConnectCallback &connect_clb)
 
metadata_cache::ClusterTopology fetch_instances_from_metadata_server (const mysqlrouter::TargetCluster &target_cluster, const std::string &clusterset_id="") override
 Queries the metadata server for the list of instances that belong to the desired cluster. More...
 
mysqlrouter::ClusterType get_cluster_type () override
 
virtual void fetch_periodic_stats_update_frequency (const mysqlrouter::MetadataSchemaVersion &schema_version, const unsigned router_id) override
 
- Public Member Functions inherited from GRMetadataBackend
 GRMetadataBackend (GRClusterMetadata *metadata, ConnectCallback &connect_clb)
 
virtual ~GRMetadataBackend ()
 
virtual stdx::expected< metadata_cache::ClusterTopology, std::error_code > fetch_cluster_topology (MySQLSession::Transaction &transaction, const mysqlrouter::MetadataSchemaVersion &schema_version, mysqlrouter::TargetCluster &target_cluster, const unsigned router_id, const metadata_cache::metadata_server_t &metadata_server, const metadata_cache::metadata_servers_list_t &metadata_servers, bool needs_writable_node, const std::string &clusterset_id, bool whole_topology)
 
virtual std::vector< metadata_cache::metadata_servers_list_tget_metadata_servers (const metadata_cache::metadata_servers_list_t &metadata_servers)
 
virtual std::optional< std::chrono::secondsget_periodic_stats_update_frequency () noexcept
 
virtual void reset ()
 

Additional Inherited Members

- Protected Attributes inherited from GRMetadataBackend
GRClusterMetadatametadata_
 
ConnectCallback connect_clb_
 
std::optional< std::chrono::secondsperiodic_stats_update_frequency_ {}
 

Constructor & Destructor Documentation

◆ GRMetadataBackendV2()

GRMetadataBackendV2::GRMetadataBackendV2 ( GRClusterMetadata metadata,
ConnectCallback connect_clb 
)
inline

Member Function Documentation

◆ fetch_instances_from_metadata_server()

metadata_cache::ClusterTopology GRMetadataBackendV2::fetch_instances_from_metadata_server ( const mysqlrouter::TargetCluster target_cluster,
const std::string &  clusterset_id = "" 
)
overridevirtual

Queries the metadata server for the list of instances that belong to the desired cluster.

Implements GRMetadataBackend.

◆ fetch_periodic_stats_update_frequency()

void GRMetadataBackendV2::fetch_periodic_stats_update_frequency ( const mysqlrouter::MetadataSchemaVersion schema_version,
const unsigned  router_id 
)
overridevirtual

Reimplemented from GRMetadataBackend.

◆ get_cluster_type()

mysqlrouter::ClusterType GRMetadataBackendV2::get_cluster_type ( )
inlineoverridevirtual

Implements GRMetadataBackend.

Reimplemented in GRClusterSetMetadataBackend.


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