![]()  | 
  
    MySQL 8.4.7
    
   Source Code Documentation 
   | 
 
Base class for a plugin specific specializations. More...
#include <section_config_exposer.h>
Public Types | |
| enum class | Mode { ExposeInitialConfig , ExposeDefaultConfig } | 
| using | DC = mysql_harness::DynamicConfig | 
| using | OptionValue = DC::OptionValue | 
Public Member Functions | |
| SectionConfigExposer (bool initial, const mysql_harness::ConfigSection &default_section, const DC::SectionId §ion_id) | |
| Constructor.  More... | |
| virtual | ~SectionConfigExposer ()=default | 
| SectionConfigExposer (const SectionConfigExposer &)=delete | |
Protected Member Functions | |
| virtual void | expose ()=0 | 
| Exposes plugin instance configuration.  More... | |
| void | expose_option (std::string_view option, const OptionValue &value, const OptionValue &default_value, bool is_common=false) | 
| Exposes single option configuration.  More... | |
| void | expose_option (std::string_view option, const OptionValue &value, const OptionValue &default_value_cluster, const OptionValue &default_value_clusterset, bool is_common) | 
| Exposes single option configuration (overload for options that have different defaults for Cluster and for ClusterSet configuration).  More... | |
Protected Attributes | |
| const Mode | mode_ | 
| const mysql_harness::ConfigSection & | default_section_ | 
| const DC::SectionId | section_id_ | 
| const DC::SectionId | common_section_id_ {"common", ""} | 
Private Member Functions | |
| void | expose_str_option (std::string_view option, const OptionValue &value, const OptionValue &default_value_cluster, const OptionValue &default_value_clusterset, bool is_common=false) | 
| void | expose_int_option (std::string_view option, const OptionValue &value, const OptionValue &default_value_cluster, const OptionValue &default_value_clusterset, bool is_common=false) | 
| void | expose_double_option (std::string_view option, const OptionValue &value, const OptionValue &default_value_cluster, const OptionValue &default_value_clusterset, bool is_common=false) | 
| void | expose_bool_option (std::string_view option, const OptionValue &value, const OptionValue &default_value_cluster, const OptionValue &default_value_clusterset, bool is_common=false) | 
| void | expose_default (std::string_view option, const auto &default_value_cluster, const auto &default_value_clusterset, bool is_common) | 
Base class for a plugin specific specializations.
Lets the plugin expose their initial and default configuration to the DynamicConfig object.
      
  | 
  strong | 
      
  | 
  inline | 
Constructor.
| initial | flag indicating if the initial or default configuration is being shared. | 
| default_section | default section of the current configuration | 
| section_id | identifier of the plugin configuration in the Dynamic config object. | 
      
  | 
  virtualdefault | 
      
  | 
  delete | 
      
  | 
  protectedpure virtual | 
Exposes plugin instance configuration.
Implemented in anonymous_namespace{connection_pool_plugin.cc}::ConnectionPoolConfigExposer, anonymous_namespace{destination_status_plugin.cc}::DestinationStatusConfigExposer, anonymous_namespace{logger_plugin.cc}::LoggerConfigExposer, anonymous_namespace{http_auth_backend_plugin.cc}::HttpAuthBackendConfigExposer, anonymous_namespace{http_auth_realm_plugin.cc}::HttpAuthRealmConfigExposer, anonymous_namespace{http_server_plugin.cc}::HttpServerConfigExposer, anonymous_namespace{io_plugin.cc}::IoConfigExposer, anonymous_namespace{plugin_config.cc}::MetadataCacheConfigExposer, anonymous_namespace{plugin_config.cc}::RoutingRulesConfigExposer, anonymous_namespace{rest_api_plugin.cc}::RestApiConfigExposer, anonymous_namespace{rest_connection_pool_plugin.cc}::RestConnectionPoolConfigExposer, anonymous_namespace{rest_metadata_cache_plugin.cc}::RestMetadataCacheConfigExposer, anonymous_namespace{rest_router_plugin.cc}::RestRouterConfigExposer, anonymous_namespace{rest_routing_plugin.cc}::RestRoutingConfigExposer, anonymous_namespace{router_app.cc}::RouterAppConfigExposer, and anonymous_namespace{plugin_config.cc}::RoutingConfigExposer.
      
  | 
  private | 
      
  | 
  inlineprivate | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  protected | 
Exposes single option configuration.
| option | option name | 
| value | configured (initial) value of the option | 
| default_value | default value for both Cluster and ClusterSet configuration | 
| is_common | indicates whether the options is supposed to also be shared in the "common" section of the configuration | 
      
  | 
  protected | 
Exposes single option configuration (overload for options that have different defaults for Cluster and for ClusterSet configuration).
| option | option name | 
| value | configured (initial) value of the option | 
| default_value_cluster | default value for Cluster configuration | 
| default_value_clusterset | default value for ClusterSet configuration | 
| is_common | indicates whether the options is supposed to also be shared in the "common" section of the configuration | 
      
  | 
  private | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected |