MySQL 9.1.0
Source Code Documentation
|
Class ManagedInstance represents a server managed by the topology. More...
#include <metadata_cache_datatypes.h>
Public Types | |
using | TCPAddress = mysql_harness::TCPAddress |
Public Member Functions | |
ManagedInstance (mysqlrouter::InstanceType p_type, const std::string &p_mysql_server_uuid, const ServerMode p_mode, const ServerRole p_role, const std::string &p_host, const uint16_t p_port, const uint16_t p_xport) | |
ManagedInstance (mysqlrouter::InstanceType p_type) | |
ManagedInstance (mysqlrouter::InstanceType p_type, const TCPAddress &addr) | |
operator TCPAddress () const | |
bool | operator== (const ManagedInstance &other) const |
Public Attributes | |
mysqlrouter::InstanceType | type |
Instance type. More... | |
std::string | mysql_server_uuid |
The uuid of the MySQL server. More... | |
ServerMode | mode {ServerMode::Unavailable} |
The mode of the server. More... | |
ServerRole | role {ServerRole::Unavailable} |
The role of the server. More... | |
std::string | host |
The host name on which the server is running. More... | |
uint16_t | port {0} |
The port number in which the server is running. More... | |
uint16_t | xport {0} |
The X protocol port number in which the server is running. More... | |
std::string | attributes |
Node atributes as a json string from metadata. More... | |
bool | hidden |
Should the node be hidden from the application to use it. More... | |
bool | disconnect_existing_sessions_when_hidden |
Should the Router disconnect existing client sessions to the node when it is hidden. More... | |
bool | ignore {false} |
Should the node be ignored for new and existing connections (for example due to the read_only_targets option) More... | |
Class ManagedInstance represents a server managed by the topology.
metadata_cache::ManagedInstance::ManagedInstance | ( | mysqlrouter::InstanceType | p_type, |
const std::string & | p_mysql_server_uuid, | ||
const ServerMode | p_mode, | ||
const ServerRole | p_role, | ||
const std::string & | p_host, | ||
const uint16_t | p_port, | ||
const uint16_t | p_xport | ||
) |
|
explicit |
|
explicit |
metadata_cache::ManagedInstance::operator TCPAddress | ( | ) | const |
bool metadata_cache::ManagedInstance::operator== | ( | const ManagedInstance & | other | ) | const |
std::string metadata_cache::ManagedInstance::attributes |
Node atributes as a json string from metadata.
bool metadata_cache::ManagedInstance::disconnect_existing_sessions_when_hidden |
Should the Router disconnect existing client sessions to the node when it is hidden.
bool metadata_cache::ManagedInstance::hidden |
Should the node be hidden from the application to use it.
std::string metadata_cache::ManagedInstance::host |
The host name on which the server is running.
bool metadata_cache::ManagedInstance::ignore {false} |
Should the node be ignored for new and existing connections (for example due to the read_only_targets option)
ServerMode metadata_cache::ManagedInstance::mode {ServerMode::Unavailable} |
The mode of the server.
std::string metadata_cache::ManagedInstance::mysql_server_uuid |
The uuid of the MySQL server.
uint16_t metadata_cache::ManagedInstance::port {0} |
The port number in which the server is running.
ServerRole metadata_cache::ManagedInstance::role {ServerRole::Unavailable} |
The role of the server.
mysqlrouter::InstanceType metadata_cache::ManagedInstance::type |
Instance type.
uint16_t metadata_cache::ManagedInstance::xport {0} |
The X protocol port number in which the server is running.