MySQL 9.0.0
Source Code Documentation
MySQLRoutingAPI Class Reference

#include <routing_component.h>

Classes

struct  ConnData
 

Public Member Functions

 MySQLRoutingAPI ()=default
 
 MySQLRoutingAPI (std::shared_ptr< MySQLRoutingBase > r)
 
std::string get_bind_address () const
 
uint16_t get_bind_port () const
 
std::chrono::milliseconds get_client_connect_timeout () const
 
std::chrono::milliseconds get_destination_connect_timeout () const
 
std::string get_destination_cluster_name () const
 
std::string get_destination_replicaset_name () const
 
int get_max_connections () const
 
uint64_t get_max_connect_errors () const
 
std::string get_name () const
 
std::string get_protocol_name () const
 
std::string get_routing_strategy () const
 
std::string get_socket () const
 
 operator bool () const noexcept
 
std::vector< std::string > get_blocked_client_hosts () const
 
std::vector< ConnDataget_connections () const
 
int get_active_connections () const
 
int get_total_connections () const
 
std::vector< mysql_harness::TCPAddressget_destinations () const
 
void start_accepting_connections ()
 
void restart_accepting_connections ()
 
bool is_accepting_connections () const
 
void stop_socket_acceptors ()
 
bool is_running () const
 

Private Attributes

std::shared_ptr< MySQLRoutingBaser_
 

Constructor & Destructor Documentation

◆ MySQLRoutingAPI() [1/2]

MySQLRoutingAPI::MySQLRoutingAPI ( )
default

◆ MySQLRoutingAPI() [2/2]

MySQLRoutingAPI::MySQLRoutingAPI ( std::shared_ptr< MySQLRoutingBase r)
inline

Member Function Documentation

◆ get_active_connections()

int MySQLRoutingAPI::get_active_connections ( ) const

◆ get_bind_address()

std::string MySQLRoutingAPI::get_bind_address ( ) const

◆ get_bind_port()

uint16_t MySQLRoutingAPI::get_bind_port ( ) const

◆ get_blocked_client_hosts()

std::vector< std::string > MySQLRoutingAPI::get_blocked_client_hosts ( ) const

◆ get_client_connect_timeout()

std::chrono::milliseconds MySQLRoutingAPI::get_client_connect_timeout ( ) const

◆ get_connections()

std::vector< MySQLRoutingAPI::ConnData > MySQLRoutingAPI::get_connections ( ) const

◆ get_destination_cluster_name()

std::string MySQLRoutingAPI::get_destination_cluster_name ( ) const

◆ get_destination_connect_timeout()

std::chrono::milliseconds MySQLRoutingAPI::get_destination_connect_timeout ( ) const

◆ get_destination_replicaset_name()

std::string MySQLRoutingAPI::get_destination_replicaset_name ( ) const

◆ get_destinations()

std::vector< mysql_harness::TCPAddress > MySQLRoutingAPI::get_destinations ( ) const

◆ get_max_connect_errors()

uint64_t MySQLRoutingAPI::get_max_connect_errors ( ) const

◆ get_max_connections()

int MySQLRoutingAPI::get_max_connections ( ) const

◆ get_name()

std::string MySQLRoutingAPI::get_name ( ) const

◆ get_protocol_name()

std::string MySQLRoutingAPI::get_protocol_name ( ) const

◆ get_routing_strategy()

std::string MySQLRoutingAPI::get_routing_strategy ( ) const

◆ get_socket()

std::string MySQLRoutingAPI::get_socket ( ) const

◆ get_total_connections()

int MySQLRoutingAPI::get_total_connections ( ) const

◆ is_accepting_connections()

bool MySQLRoutingAPI::is_accepting_connections ( ) const

◆ is_running()

bool MySQLRoutingAPI::is_running ( ) const

◆ operator bool()

MySQLRoutingAPI::operator bool ( ) const
inlineexplicitnoexcept

◆ restart_accepting_connections()

void MySQLRoutingAPI::restart_accepting_connections ( )

◆ start_accepting_connections()

void MySQLRoutingAPI::start_accepting_connections ( )

◆ stop_socket_acceptors()

void MySQLRoutingAPI::stop_socket_acceptors ( )

Member Data Documentation

◆ r_

std::shared_ptr<MySQLRoutingBase> MySQLRoutingAPI::r_
private

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