![]() |
MySQL 8.0.29
Source Code Documentation
|
route specific configuration. More...
#include <plugin_config.h>
Public Member Functions | |
RoutingPluginConfig (const mysql_harness::ConfigSection *section) | |
Constructor. More... | |
std::string | get_default (const std::string &option) const override |
Gets the default for the given option. More... | |
bool | is_required (const std::string &option) const override |
Returns whether the given option is required. More... | |
uint16_t | get_option_max_connections (const mysql_harness::ConfigSection *section) |
![]() | |
virtual | ~BasePluginConfig ()=default |
destructor More... | |
std::string | get_option_description (const mysql_harness::ConfigSection *section, const std::string &option) const |
get description of the option. More... | |
template<class Func > | |
decltype(auto) | get_option (const mysql_harness::ConfigSection *section, const std::string &option, Func &&transformer) const |
get option value. More... | |
template<class Func > | |
decltype(auto) | get_option_no_default (const mysql_harness::ConfigSection *section, const std::string &option, Func &&transformer) const |
get option value. More... | |
std::string | get_option_string (const mysql_harness::ConfigSection *section, const std::string &option) const |
Gets value of given option as string. More... | |
template<class T > | |
T | get_uint_option (const mysql_harness::ConfigSection *section, const std::string &option, T min_value=0, T max_value=std::numeric_limits< T >::max()) const |
Gets an unsigned integer using the given option. More... | |
std::chrono::milliseconds | get_option_milliseconds (const mysql_harness::ConfigSection *section, const std::string &option, double min_value=0.0, double max_value=std::numeric_limits< double >::max()) const |
Gets a number of milliseconds using the given option. More... | |
Public Attributes | |
const Protocol::Type | protocol |
protocol (classic, x) More... | |
const std::string | destinations |
destinations More... | |
const int | bind_port |
TCP port to bind to. More... | |
const mysql_harness::TCPAddress | bind_address |
IP address to bind to. More... | |
const mysql_harness::Path | named_socket |
unix domain socket path to bind to More... | |
const int | connect_timeout |
connect-timeout in seconds More... | |
const routing::AccessMode | mode |
read-only/read-write More... | |
routing::RoutingStrategy | routing_strategy |
routing strategy (next-avail, ...) More... | |
const int | max_connections |
max connections allowed More... | |
const unsigned long long | max_connect_errors |
max connect errors More... | |
const unsigned int | client_connect_timeout |
client connect timeout in seconds More... | |
const unsigned int | net_buffer_length |
Size of buffer to receive packets. More... | |
const unsigned int | thread_stack_size |
thread stack size in kilobytes More... | |
SslMode | source_ssl_mode |
SslMode of the client side connection. More... | |
const std::string | source_ssl_cert |
Cert file. More... | |
const std::string | source_ssl_key |
Key file. More... | |
const std::string | source_ssl_cipher |
allowed TLS ciphers More... | |
const std::string | source_ssl_curves |
allowed TLS curves More... | |
const std::string | source_ssl_dh_params |
DH params. More... | |
const SslMode | dest_ssl_mode |
SslMode of the server side connection. More... | |
const SslVerify | dest_ssl_verify |
How to verify the server-side cert. More... | |
const std::string | dest_ssl_cipher |
allowed TLS ciphers More... | |
const std::string | dest_ssl_ca_file |
CA file to used to verify destinations' identity. More... | |
const std::string | dest_ssl_ca_dir |
directory of CA files used to verify destinations' identity More... | |
const std::string | dest_ssl_crl_file |
CRL file used to check revoked certificates. More... | |
const std::string | dest_ssl_crl_dir |
directory of CRL files More... | |
const std::string | dest_ssl_curves |
allowed TLS curves More... | |
const std::chrono::seconds | unreachable_destination_refresh_interval |
Private Attributes | |
bool | metadata_cache_ |
Additional Inherited Members | |
![]() | |
BasePluginConfig (const mysql_harness::ConfigSection *section) | |
Constructor for derived classes. More... | |
![]() | |
static std::string | get_section_name (const mysql_harness::ConfigSection *section) |
Generate the name for this configuration. More... | |
route specific configuration.
RoutingPluginConfig::RoutingPluginConfig | ( | const mysql_harness::ConfigSection * | section | ) |
Constructor.
section | from configuration file provided as ConfigSection |
|
overridevirtual |
Gets the default for the given option.
Gets the default value of the given option. If no default option is available, an empty string is returned.
option | name of the option |
Implements mysql_harness::BasePluginConfig.
uint16_t RoutingPluginConfig::get_option_max_connections | ( | const mysql_harness::ConfigSection * | section | ) |
|
overridevirtual |
Returns whether the given option is required.
Implements mysql_harness::BasePluginConfig.
const mysql_harness::TCPAddress RoutingPluginConfig::bind_address |
IP address to bind to.
const int RoutingPluginConfig::bind_port |
TCP port to bind to.
const unsigned int RoutingPluginConfig::client_connect_timeout |
client connect timeout in seconds
const int RoutingPluginConfig::connect_timeout |
connect-timeout in seconds
const std::string RoutingPluginConfig::dest_ssl_ca_dir |
directory of CA files used to verify destinations' identity
const std::string RoutingPluginConfig::dest_ssl_ca_file |
CA file to used to verify destinations' identity.
const std::string RoutingPluginConfig::dest_ssl_cipher |
allowed TLS ciphers
const std::string RoutingPluginConfig::dest_ssl_crl_dir |
directory of CRL files
const std::string RoutingPluginConfig::dest_ssl_crl_file |
CRL file used to check revoked certificates.
const std::string RoutingPluginConfig::dest_ssl_curves |
allowed TLS curves
const SslMode RoutingPluginConfig::dest_ssl_mode |
SslMode of the server side connection.
const SslVerify RoutingPluginConfig::dest_ssl_verify |
How to verify the server-side cert.
const std::string RoutingPluginConfig::destinations |
destinations
const unsigned long long RoutingPluginConfig::max_connect_errors |
max connect errors
const int RoutingPluginConfig::max_connections |
max connections allowed
|
mutableprivate |
const routing::AccessMode RoutingPluginConfig::mode |
read-only/read-write
const mysql_harness::Path RoutingPluginConfig::named_socket |
unix domain socket path to bind to
const unsigned int RoutingPluginConfig::net_buffer_length |
Size of buffer to receive packets.
const Protocol::Type RoutingPluginConfig::protocol |
protocol (classic, x)
routing::RoutingStrategy RoutingPluginConfig::routing_strategy |
routing strategy (next-avail, ...)
const std::string RoutingPluginConfig::source_ssl_cert |
Cert file.
const std::string RoutingPluginConfig::source_ssl_cipher |
allowed TLS ciphers
const std::string RoutingPluginConfig::source_ssl_curves |
allowed TLS curves
const std::string RoutingPluginConfig::source_ssl_dh_params |
DH params.
const std::string RoutingPluginConfig::source_ssl_key |
Key file.
SslMode RoutingPluginConfig::source_ssl_mode |
SslMode of the client side connection.
const unsigned int RoutingPluginConfig::thread_stack_size |
thread stack size in kilobytes
const std::chrono::seconds RoutingPluginConfig::unreachable_destination_refresh_interval |