MySQL 8.4.2
Source Code Documentation
metadata_cache.h File Reference
#include "mysqlrouter/metadata_cache_export.h"
#include <atomic>
#include <chrono>
#include <exception>
#include <list>
#include <map>
#include <stdexcept>
#include <string>
#include <vector>
#include "my_rapidjson_size_t.h"
#include <rapidjson/document.h>
#include "mysql/harness/stdx/monitor.h"
#include "mysql_router_thread.h"
#include "mysqlrouter/cluster_metadata.h"
#include "mysqlrouter/datatypes.h"
#include "mysqlrouter/metadata.h"
#include "mysqlrouter/metadata_cache_datatypes.h"
#include "mysqlrouter/mysql_session.h"
#include "tcp_address.h"

Go to the source code of this file.

Classes

class  metadata_cache::metadata_error
 Class that represents all the exceptions that are thrown while fetching the metadata. More...
 
class  metadata_cache::ClusterStateListenerInterface
 Abstract class that provides interface for listener on cluster status changes. More...
 
class  metadata_cache::AcceptorUpdateHandlerInterface
 Abstract class that provides interface for listener on whether the listening sockets acceptors state should be updated. More...
 
class  metadata_cache::MetadataRefreshListenerInterface
 Abstract class that provides interface for listener on metadata refresh. More...
 
class  metadata_cache::ClusterStateNotifierInterface
 Abstract class that provides interface for adding and removing observers on cluster status changes. More...
 
struct  metadata_cache::MetadataCacheTTLConfig
 Metadata TTL configuration. More...
 
class  metadata_cache::MetadataCacheAPIBase
 
struct  metadata_cache::MetadataCacheAPIBase::RefreshStatus
 
class  metadata_cache::MetadataCacheAPI
 
struct  metadata_cache::MetadataCacheAPI::InstData
 

Namespaces

 

Functions

std::shared_ptr< MetaDatametadata_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. More...
 

Variables

constexpr const uint16_t metadata_cache::kDefaultMetadataPort {32275}
 
constexpr const std::string_view metadata_cache::kDefaultMetadataAddress {"127.0.0.1:32275"}
 
constexpr const std::string_view metadata_cache::kDefaultMetadataUser {""}
 
constexpr const std::string_view metadata_cache::kDefaultMetadataPassword {""}
 
constexpr const std::chrono::milliseconds metadata_cache::kDefaultAuthCacheTTL
 
constexpr const std::chrono::milliseconds metadata_cache::kDefaultAuthCacheRefreshInterval
 
constexpr const std::string_view metadata_cache::kDefaultMetadataCluster {""}
 
constexpr const unsigned int metadata_cache::kDefaultConnectTimeout
 
constexpr const unsigned int metadata_cache::kDefaultReadTimeout