26#ifndef METADATA_CACHE_PLUGIN_CONFIG_INCLUDED
27#define METADATA_CACHE_PLUGIN_CONFIG_INCLUDED
40#include "mysql/harness/plugin.h"
63 std::string
get_default(std::string_view option)
const override;
64 bool is_required(std::string_view option)
const override;
66 mutable std::unique_ptr<ClusterMetadataDynamicState>
73 std::chrono::milliseconds
ttl;
105 bool use_replica_primary_as_rw{
false};
117 std::string get_cluster_type_specific_id()
const;
123 uint64_t get_view_id()
const;
126 const bool initial)
const;
137 std::vector<mysql_harness::TCPAddress> get_metadata_servers(
138 uint16_t default_port)
const;
143 std::unique_ptr<ClusterMetadataDynamicState> get_dynamic_state(
Retrieve and manage plugin configuration.
Definition: plugin_config.h:62
virtual bool is_required(std::string_view option) const =0
Returns whether the given option is required.
virtual std::string get_default(std::string_view option) const =0
Gets the default for the given option.
Configuration section.
Definition: config_parser.h:141
InvalidatedClusterRoutingPolicy
Definition: cluster_metadata.h:162
static void expose_configuration(mysql_harness::PluginFuncEnv *env, const char *, bool initial)
Definition: connection_pool_plugin.cc:177
ClusterType
Definition: cluster_metadata.h:140
ReadOnlyTargets
Definition: router_options.h:39
static const auto kDefautlInvalidatedClusterRoutingPolicy
Definition: router_options.h:36
static const QuorumConnectionLostAllowTraffic kDefaultQuorumConnectionLostAllowTraffic
Definition: router_options.h:47
static const ReadOnlyTargets kDefaultReadOnlyTargets
Definition: router_options.h:40
QuorumConnectionLostAllowTraffic
Definition: router_options.h:45
SSL connection related options.
Definition: datatypes.h:39
double seconds()
Definition: task.cc:310