MySQL 8.3.0
Source Code Documentation
MetadataServersStateListener Class Reference
Inheritance diagram for MetadataServersStateListener:
[legend]

Public Member Functions

 MetadataServersStateListener (ClusterMetadataDynamicState &dynamic_state)
 
 ~MetadataServersStateListener () override
 
void notify_instances_changed (const metadata_cache::ClusterTopology &cluster_topology, const bool md_servers_reachable, const uint64_t view_id) override
 Callback function that is called when state of cluster is changed. More...
 

Private Attributes

ClusterMetadataDynamicStatedynamic_state_
 

Constructor & Destructor Documentation

◆ MetadataServersStateListener()

MetadataServersStateListener::MetadataServersStateListener ( ClusterMetadataDynamicState dynamic_state)
inline

◆ ~MetadataServersStateListener()

MetadataServersStateListener::~MetadataServersStateListener ( )
inlineoverride

Member Function Documentation

◆ notify_instances_changed()

void MetadataServersStateListener::notify_instances_changed ( const metadata_cache::ClusterTopology cluster_topology,
const bool  md_servers_reachable,
const uint64_t  view_id 
)
inlineoverridevirtual

Callback function that is called when state of cluster is changed.

Parameters
cluster_topologycurrent cluster topology
md_servers_reachabletrue if metadata changed, false if metadata unavailable
view_idcurrent metadata view_id in case of ReplicaSet cluster

Implements metadata_cache::ClusterStateListenerInterface.

Member Data Documentation

◆ dynamic_state_

ClusterMetadataDynamicState& MetadataServersStateListener::dynamic_state_
private

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