![]()  | 
  
    MySQL 8.0.44
    
   Source Code Documentation 
   | 
 
Classes | |
| class | AcceptorUpdateHandlerInterface | 
| Abstract class that provides interface for listener on whether the listening sockets acceptors state should be updated.  More... | |
| class | ClusterStateListenerInterface | 
| Abstract class that provides interface for listener on cluster status changes.  More... | |
| class | ClusterStateNotifierInterface | 
| Abstract class that provides interface for adding and removing observers on cluster status changes.  More... | |
| class | ClusterTopology | 
| Represents a cluster (a GR group or AR members) and its metadata servers.  More... | |
| class | ManagedCluster | 
| Represents a cluster (a GR group or AR members)  More... | |
| class | ManagedInstance | 
| Class ManagedInstance represents a server managed by the topology.  More... | |
| class | metadata_error | 
| Class that represents all the exceptions that are thrown while fetching the metadata.  More... | |
| class | MetadataCacheAPI | 
| class | MetadataCacheAPIBase | 
| struct | MetadataCacheMySQLSessionConfig | 
| Metadata MySQL session configuration.  More... | |
| struct | MetadataCacheTTLConfig | 
| Metadata TTL configuration.  More... | |
| class | MetadataRefreshListenerInterface | 
| Abstract class that provides interface for listener on metadata refresh.  More... | |
| struct | RouterAttributes | 
Typedefs | |
| using | cluster_nodes_list_t = std::vector< ManagedInstance > | 
| using | metadata_server_t = mysql_harness::TCPAddress | 
| using | metadata_servers_list_t = std::vector< metadata_server_t > | 
Enumerations | |
| enum class | metadata_errc {  ok , no_metadata_server_reached , no_metadata_read_successful , metadata_refresh_terminated , cluster_not_found , invalid_cluster_type , outdated_view_id }  | 
| enum class | ServerMode { ReadWrite , ReadOnly , Unavailable } | 
| enum class | ServerRole { Primary , Secondary , Unavailable } | 
| enum class | InstanceType { GroupMember , AsyncMember , ReadReplica } | 
Functions | |
| std::shared_ptr< MetaData > | metadata_factory_get_instance (const mysqlrouter::ClusterType cluster_type, const metadata_cache::MetadataCacheMySQLSessionConfig &session_config, const mysqlrouter::SSLOptions &ssl_options, const bool use_cluster_notifications, const unsigned view_id) | 
| Return an instance of cluster metadata.  More... | |
| const std::error_category & | metadata_cache_category () noexcept | 
| std::error_code | make_error_code (metadata_errc e) noexcept | 
| bool | operator== (const metadata_cache::ManagedCluster &cluster_a, const metadata_cache::ManagedCluster &cluster_b) | 
| bool | operator!= (const metadata_cache::ManagedCluster &cluster_a, const metadata_cache::ManagedCluster &cluster_b) | 
| bool | operator== (const metadata_cache::ClusterTopology &a, const metadata_cache::ClusterTopology &b) | 
| bool | operator!= (const metadata_cache::ClusterTopology &a, const metadata_cache::ClusterTopology &b) | 
Variables | |
| constexpr const uint16_t | kDefaultMetadataPort {32275} | 
| constexpr const std::string_view | kDefaultMetadataAddress {"127.0.0.1:32275"} | 
| constexpr const std::string_view | kDefaultMetadataUser {""} | 
| constexpr const std::string_view | kDefaultMetadataPassword {""} | 
| constexpr const std::chrono::milliseconds | kDefaultMetadataTTL {500} | 
| constexpr const std::chrono::milliseconds | kDefaultAuthCacheTTL | 
| constexpr const std::chrono::milliseconds | kDefaultAuthCacheRefreshInterval | 
| constexpr const std::string_view | kDefaultMetadataCluster {""} | 
| constexpr const unsigned int | kDefaultConnectTimeout | 
| constexpr const unsigned int | kDefaultReadTimeout | 
| constexpr const std::string_view | kNodeTagHidden {"_hidden"} | 
| constexpr const std::string_view | kNodeTagDisconnectWhenHidden | 
| constexpr const bool | kNodeTagHiddenDefault {false} | 
| constexpr const bool | kNodeTagDisconnectWhenHiddenDefault {true} | 
| static std::shared_ptr< MetaData > | meta_data {nullptr} | 
| using metadata_cache::cluster_nodes_list_t = typedef std::vector<ManagedInstance> | 
| using metadata_cache::metadata_server_t = typedef mysql_harness::TCPAddress | 
| using metadata_cache::metadata_servers_list_t = typedef std::vector<metadata_server_t> | 
      
  | 
  strong | 
      
  | 
  strong | 
      
  | 
  strong | 
      
  | 
  strong | 
      
  | 
  inlinenoexcept | 
      
  | 
  inlinenoexcept | 
| std::shared_ptr< MetaData > metadata_cache::metadata_factory_get_instance | ( | const mysqlrouter::ClusterType | cluster_type, | 
| const metadata_cache::MetadataCacheMySQLSessionConfig & | session_config, | ||
| const mysqlrouter::SSLOptions & | ssl_options, | ||
| const bool | use_cluster_notifications, | ||
| const unsigned | view_id | ||
| ) | 
Return an instance of cluster metadata.
| cluster_type | type of the cluster the metadata cache object will represent (GR or ReplicaSet) | 
| session_config | Metadata MySQL session configuration | 
| ssl_options | SSL related options to be used for connection | 
| use_cluster_notifications | Flag indicating if the metadata cache should use cluster notifications as an additional trigger for metadata refresh (only available for GR cluster type) | 
| view_id | last known view_id of the cluster metadata (only relevant for ReplicaSet cluster) | 
| bool metadata_cache::operator!= | ( | const metadata_cache::ClusterTopology & | a, | 
| const metadata_cache::ClusterTopology & | b | ||
| ) | 
| bool metadata_cache::operator!= | ( | const metadata_cache::ManagedCluster & | cluster_a, | 
| const metadata_cache::ManagedCluster & | cluster_b | ||
| ) | 
| bool metadata_cache::operator== | ( | const metadata_cache::ClusterTopology & | a, | 
| const metadata_cache::ClusterTopology & | b | ||
| ) | 
| bool metadata_cache::operator== | ( | const metadata_cache::ManagedCluster & | cluster_a, | 
| const metadata_cache::ManagedCluster & | cluster_b | ||
| ) | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr | 
      
  | 
  constexpr |