MySQL 9.3.0
Source Code Documentation
BootstrapConfigurator::MySQLRouterAndMrsConf Class Reference
Inheritance diagram for BootstrapConfigurator::MySQLRouterAndMrsConf:
[legend]

Public Member Functions

 MySQLRouterAndMrsConf (bool &is_legacy, KeyringInfo &keyring_info, std::ostream &out_stream, std::ostream &err_stream, std::vector< std::string > &configs_)
 
void prepare_command_options (CmdArgHandler &arg_handler, const std::string &bootstrap_uri="") noexcept override
 
bool is_legacy () const override
 
- Public Member Functions inherited from MySQLRouterConf
 MySQLRouterConf (KeyringInfo &keyring_info, std::ostream &out_stream=std::cout, std::ostream &err_stream=std::cerr)
 
virtual ~MySQLRouterConf ()=default
 
bool is_bootstrap () const
 
bool skipped () const
 
void add_option (const std::string &key, const std::string &value)
 
const std::map< std::string, std::string > & bootstrap_options () const
 
void connect ()
 
mysqlrouter::MySQLSessionsession () const
 
std::string bootstrap (const std::string &program_name, const mysql_harness::Path &origin, bool allow_standalone, const std::string &plugin_folder, mysqlrouter::SysUserOperationsBase *sys_user_operations=nullptr)
 
std::map< std::string, std::string > get_config_cmdln_options () const
 

Private Member Functions

void check_and_add_conf (std::vector< std::string > &configs, const std::string &value)
 

Private Attributes

bool & is_legacy_
 
std::vector< std::string > & config_files_
 

Additional Inherited Members

- Protected Member Functions inherited from MySQLRouterConf
void save_bootstrap_option_not_empty (const std::string &option_name, const std::string &save_name, const std::string &option_value)
 Saves the selected command line option in the internal options array after verifying it's value not empty and the router is doing bootstrap. More...
 
void assert_bootstrap_mode (const std::string &option_name) const
 verify that bootstrap option (–bootstrap or -B) was given by user. More...
 
int get_connect_timeout () const
 
int get_read_timeout () const
 
std::string get_bootstrap_socket () const
 
- Protected Attributes inherited from MySQLRouterConf
std::string bootstrap_uri_
 Value of the argument passed to the -B or –bootstrap command line option for bootstrapping. More...
 
std::string bootstrap_directory_
 Valueof the argument passed to the –directory command line option. More...
 
std::map< std::string, std::string > bootstrap_options_
 key/value map of additional configuration options for bootstrap More...
 
std::map< std::string, std::vector< std::string > > bootstrap_multivalue_options_
 key/list-of-values map of additional configuration options for bootstrap More...
 
mysqlrouter::URI target_uri_
 
std::unique_ptr< mysqlrouter::MySQLSessionmysql_
 
KeyringInfokeyring_info_
 
bool skipped_ = false
 
std::ostream & out_stream_
 
std::ostream & err_stream_
 
std::string plugin_folder_
 

Constructor & Destructor Documentation

◆ MySQLRouterAndMrsConf()

BootstrapConfigurator::MySQLRouterAndMrsConf::MySQLRouterAndMrsConf ( bool &  is_legacy,
KeyringInfo keyring_info,
std::ostream &  out_stream,
std::ostream &  err_stream,
std::vector< std::string > &  configs_ 
)
inline

Member Function Documentation

◆ check_and_add_conf()

void BootstrapConfigurator::MySQLRouterAndMrsConf::check_and_add_conf ( std::vector< std::string > &  configs,
const std::string &  value 
)
private

◆ is_legacy()

bool BootstrapConfigurator::MySQLRouterAndMrsConf::is_legacy ( ) const
inlineoverridevirtual

Reimplemented from MySQLRouterConf.

◆ prepare_command_options()

void BootstrapConfigurator::MySQLRouterAndMrsConf::prepare_command_options ( CmdArgHandler arg_handler,
const std::string &  bootstrap_uri = "" 
)
inlineoverridevirtualnoexcept

Reimplemented from MySQLRouterConf.

Member Data Documentation

◆ config_files_

std::vector<std::string>& BootstrapConfigurator::MySQLRouterAndMrsConf::config_files_
private

◆ is_legacy_

bool& BootstrapConfigurator::MySQLRouterAndMrsConf::is_legacy_
private

The documentation for this class was generated from the following files: