MySQL 8.0.39
Source Code Documentation
cluster_metadata.h File Reference
#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)
 

Typedef Documentation

◆ ConnectCallback

using ConnectCallback = std::function<bool(mysqlrouter::MySQLSession &connection, const metadata_cache::ManagedInstance &mi)>

Function Documentation

◆ as_string()

std::string as_string ( const char *  input_str)

Return a string representation of the input character string.

Parameters
input_strA character string.
Returns
A string object encapsulation of the input character string. An empty string if input string is nullptr.

◆ get_disconnect_existing_sessions_when_hidden()

bool get_disconnect_existing_sessions_when_hidden ( const std::string &  attributes,
std::string &  out_warning 
)

◆ get_hidden()

bool get_hidden ( const std::string &  attributes,
std::string &  out_warning 
)

◆ set_instance_attributes()

void set_instance_attributes ( metadata_cache::ManagedInstance instance,
const std::string &  attributes 
)

◆ set_instance_ports()

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 
)