26#ifndef ROUTING_CLASSIC_CONNECT_INCLUDED
27#define ROUTING_CLASSIC_CONNECT_INCLUDED
const MysqlRoutingClassicConnectionBase * connection() const
Definition: processor.h:76
Definition: classic_connect.h:37
stdx::expected< Processor::Result, std::error_code > init_endpoint()
Definition: classic_connect.cc:267
std::chrono::steady_clock::time_point connect_started_
Definition: classic_connect.h:108
net::ip::tcp::resolver::results_type endpoints_
Definition: classic_connect.h:96
stdx::expected< Processor::Result, std::error_code > error()
Definition: classic_connect.cc:760
server_protocol_type::endpoint server_endpoint_
Definition: classic_connect.h:92
Stage
Definition: classic_connect.h:51
stdx::expected< Processor::Result, std::error_code > connect_finish()
Definition: classic_connect.cc:546
Destinations & destinations_
Definition: classic_connect.h:94
stdx::expected< Processor::Result, std::error_code > init_destination()
Definition: classic_connect.cc:134
stdx::expected< Processor::Result, std::error_code > resolve()
Definition: classic_connect.cc:182
std::function< void(const classic_protocol::message::server::Error &err)> on_error_
Definition: classic_connect.h:106
ConnectProcessor(MysqlRoutingClassicConnectionBase *conn, std::function< void(const classic_protocol::message::server::Error &err)> on_error)
Definition: classic_connect.h:39
stdx::expected< Processor::Result, std::error_code > from_pool()
Definition: classic_connect.cc:293
net::ip::tcp::resolver::results_type::iterator endpoints_it_
Definition: classic_connect.h:97
Stage stage_
Definition: classic_connect.h:87
bool all_quarantined_
Definition: classic_connect.h:99
void stage(Stage stage)
Definition: classic_connect.h:69
bool is_destination_good(const std::string &hostname, uint16_t port) const
Definition: classic_connect.cc:676
std::vector< std::pair< std::string, std::error_code > > connect_errors_
Definition: classic_connect.h:103
stdx::expected< Processor::Result, std::error_code > connected()
Definition: classic_connect.cc:740
net::io_context & io_ctx_
Definition: classic_connect.h:89
stdx::expected< Processor::Result, std::error_code > init_connect()
Definition: classic_connect.cc:277
Destinations::iterator destinations_it_
Definition: classic_connect.h:95
Stage stage() const
Definition: classic_connect.h:70
stdx::expected< Processor::Result, std::error_code > next_destination()
Definition: classic_connect.cc:693
stdx::expected< Processor::Result, std::error_code > process() override
Definition: classic_connect.cc:65
std::error_code destination_ec_
Definition: classic_connect.h:100
net::ip::tcp::resolver resolver_
Definition: classic_connect.h:91
stdx::expected< Processor::Result, std::error_code > next_endpoint()
Definition: classic_connect.cc:636
stdx::expected< Processor::Result, std::error_code > connect()
Definition: classic_connect.cc:374
A forward iterable container of destinations.
Definition: destination.h:97
typename container_type::iterator iterator
Definition: destination.h:101
Definition: classic_connection_base.h:221
a processor base class with helper functions.
Definition: processor.h:89
Definition: io_context.h:61
Definition: internet.h:678
Definition: internet.h:542
const_iterator iterator
Definition: internet.h:550
Definition: internet.h:608
TCP protocol.
Definition: internet.h:1155
Definition: expected.h:944
borrowable::message::server::Error< false > Error
Definition: classic_protocol_message.h:1399
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:910
Definition: gcs_xcom_synode.h:64
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:33