MySQL 8.0.39
Source Code Documentation
metadata_cache_datatypes.h File Reference
#include "mysqlrouter/metadata_cache_export.h"
#include <algorithm>
#include <optional>
#include <string>
#include <system_error>
#include <vector>
#include "mysqlrouter/datatypes.h"
#include "tcp_address.h"

Go to the source code of this file.

Classes

struct  std::is_error_code_enum< metadata_cache::metadata_errc >
 
class  metadata_cache::ManagedInstance
 Class ManagedInstance represents a server managed by the topology. More...
 
class  metadata_cache::ManagedCluster
 Represents a cluster (a GR group or AR members) More...
 
class  metadata_cache::ClusterTopology
 Represents a cluster (a GR group or AR members) and its metadata servers. More...
 
struct  metadata_cache::MetadataCacheMySQLSessionConfig
 Metadata MySQL session configuration. More...
 
struct  metadata_cache::RouterAttributes
 

Namespaces

 
namespace  std
 

Typedefs

using metadata_cache::cluster_nodes_list_t = std::vector< ManagedInstance >
 
using metadata_cache::metadata_server_t = mysql_harness::TCPAddress
 
using metadata_cache::metadata_servers_list_t = std::vector< metadata_server_t >
 

Enumerations

enum class  metadata_cache::metadata_errc {
  metadata_cache::ok , metadata_cache::no_metadata_server_reached , metadata_cache::no_metadata_read_successful , metadata_cache::metadata_refresh_terminated ,
  metadata_cache::cluster_not_found , metadata_cache::invalid_cluster_type , metadata_cache::outdated_view_id
}
 
enum class  metadata_cache::ServerMode { metadata_cache::ReadWrite , metadata_cache::ReadOnly , metadata_cache::Unavailable }
 
enum class  metadata_cache::ServerRole { metadata_cache::Primary , metadata_cache::Secondary , metadata_cache::Unavailable }
 
enum class  metadata_cache::InstanceType { metadata_cache::GroupMember , metadata_cache::AsyncMember , metadata_cache::ReadReplica }
 

Functions

const std::error_category & metadata_cache::metadata_cache_category () noexcept
 
std::error_code metadata_cache::make_error_code (metadata_errc e) noexcept
 

Variables

constexpr const bool metadata_cache::kNodeTagHiddenDefault {false}
 
constexpr const bool metadata_cache::kNodeTagDisconnectWhenHiddenDefault {true}