MySQL 9.1.0
Source Code Documentation
metadata_cache_plugin.cc File Reference
#include <termios.h>
#include <unistd.h>
#include <array>
#include <stdexcept>
#include <string>
#include "keyring/keyring_manager.h"
#include "metadata_cache.h"
#include "my_thread.h"
#include "mysql/harness/config_parser.h"
#include "mysql/harness/dynamic_config.h"
#include "mysql/harness/loader_config.h"
#include "mysql/harness/logging/logging.h"
#include "mysqlrouter/mysql_client_thread_token.h"
#include "mysqlrouter/mysql_session.h"
#include "mysqlrouter/supported_metadata_cache_options.h"
#include "mysqlrouter/uri.h"
#include "plugin_config.h"

Classes

class  MetadataServersStateListener
 

Functions

static metadata_cache::RouterAttributes get_router_attributes (const mysql_harness::Config *cfg)
 
static void init (mysql_harness::PluginFuncEnv *env)
 
static void start (mysql_harness::PluginFuncEnv *env)
 Initialize the metadata cache for fetching the information from the metadata servers. More...
 
static void expose_configuration (mysql_harness::PluginFuncEnv *env, const char *, bool initial)
 

Variables

static const mysql_harness::AppInfo * g_app_info
 
static const std::string kSectionName = "metadata_cache"
 
static const char * kKeyringAttributePassword = "password"
 
metadata_cache::RouterAttributes g_router_attributes
 
static constexpr std::array required
 
mysql_harness::Plugin METADATA_CACHE_PLUGIN_EXPORT harness_plugin_metadata_cache
 

Function Documentation

◆ expose_configuration()

static void expose_configuration ( mysql_harness::PluginFuncEnv env,
const char *  ,
bool  initial 
)
static

◆ get_router_attributes()

static metadata_cache::RouterAttributes get_router_attributes ( const mysql_harness::Config cfg)
static

◆ init()

static void init ( mysql_harness::PluginFuncEnv env)
static

◆ start()

static void start ( mysql_harness::PluginFuncEnv env)
static

Initialize the metadata cache for fetching the information from the metadata servers.

Parameters
envplugin's environment

Variable Documentation

◆ g_app_info

const mysql_harness::AppInfo* g_app_info
static

◆ g_router_attributes

metadata_cache::RouterAttributes g_router_attributes

◆ harness_plugin_metadata_cache

mysql_harness::Plugin METADATA_CACHE_PLUGIN_EXPORT harness_plugin_metadata_cache
Initial value:
= {
mysql_harness::PLUGIN_ABI_VERSION,
mysql_harness::ARCHITECTURE_DESCRIPTOR,
"Metadata Cache, managing information fetched from the Metadata Server",
VERSION_NUMBER(0, 0, 1),
required.size(),
required.data(),
0,
nullptr,
init,
nullptr,
nullptr,
true,
}
static constexpr std::array required
Definition: metadata_cache_plugin.cc:263
static void expose_configuration(mysql_harness::PluginFuncEnv *env, const char *, bool initial)
Definition: metadata_cache_plugin.cc:268
static void init(mysql_harness::PluginFuncEnv *env)
Definition: metadata_cache_plugin.cc:92
static void start(mysql_harness::PluginFuncEnv *env)
Initialize the metadata cache for fetching the information from the metadata servers.
Definition: metadata_cache_plugin.cc:156
static constexpr std::array metadata_cache_supported_options
Definition: supported_metadata_cache_options.h:31

◆ kKeyringAttributePassword

const char* kKeyringAttributePassword = "password"
static

◆ kSectionName

const std::string kSectionName = "metadata_cache"
static

◆ required

constexpr std::array required
staticconstexpr
Initial value:
{
"logger",
"router_protobuf",
}