MySQL 8.0.40
Source Code Documentation
|
#include "mysqlrouter/metadata_cache_export.h"
#include "mysqlrouter/cluster_metadata.h"
#include "mysqlrouter/metadata.h"
#include "mysqlrouter/metadata_cache.h"
#include "mysqlrouter/mysql_session.h"
#include "tcp_address.h"
#include <chrono>
#include <cstring>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
class | ClusterMetadata |
The ClusterMetadata class encapsulates a connection to the Metadata server. More... | |
Namespaces | |
namespace | mysqlrouter |
namespace | xcl |
Typedefs | |
using | ConnectCallback = std::function< bool(mysqlrouter::MySQLSession &connection, const metadata_cache::ManagedInstance &mi)> |
Functions | |
std::string | as_string (const char *input_str) |
Return a string representation of the input character string. More... | |
bool | set_instance_ports (metadata_cache::ManagedInstance &instance, const mysqlrouter::MySQLSession::Row &row, const size_t classic_port_column, const size_t x_port_column) |
void | set_instance_attributes (metadata_cache::ManagedInstance &instance, const std::string &attributes) |
bool | get_hidden (const std::string &attributes, std::string &out_warning) |
bool | get_disconnect_existing_sessions_when_hidden (const std::string &attributes, std::string &out_warning) |
using ConnectCallback = std::function<bool(mysqlrouter::MySQLSession &connection, const metadata_cache::ManagedInstance &mi)> |
std::string as_string | ( | const char * | input_str | ) |
Return a string representation of the input character string.
input_str | A character string. |
bool get_disconnect_existing_sessions_when_hidden | ( | const std::string & | attributes, |
std::string & | out_warning | ||
) |
bool get_hidden | ( | const std::string & | attributes, |
std::string & | out_warning | ||
) |
void set_instance_attributes | ( | metadata_cache::ManagedInstance & | instance, |
const std::string & | attributes | ||
) |
bool set_instance_ports | ( | metadata_cache::ManagedInstance & | instance, |
const mysqlrouter::MySQLSession::Row & | row, | ||
const size_t | classic_port_column, | ||
const size_t | x_port_column | ||
) |