|
| StaticDestinationsManager (routing::RoutingStrategy strategy, net::io_context &io_ctx, MySQLRoutingContext &routing_ctx) |
|
void | add (const mysql_harness::Destination &dest) |
| Adds a destination. More...
|
|
void | start (const mysql_harness::PluginFuncEnv *) override |
| Start the destination manager. More...
|
|
std::vector< mysql_harness::Destination > | get_destination_candidates () const override |
| Get addresses of all nodes that are a possible destination candidates. More...
|
|
bool | refresh_destinations (const routing_guidelines::Session_info &) override |
| refresh destinations. More...
|
|
void | handle_sockets_acceptors () override |
| Trigger listening socket acceptors state handler based on the destination type. More...
|
|
std::unique_ptr< Destination > | get_next_destination (const routing_guidelines::Session_info &) override |
| Get destination that should be used for connection attempt. More...
|
|
std::unique_ptr< Destination > | get_last_used_destination () const override |
| Get destination that was selected as a destination candidate. More...
|
|
stdx::expected< void, std::error_code > | init_destinations (const routing_guidelines::Session_info &) override |
| Set up destination manager, prepare the destinations. More...
|
|
void | connect_status (std::error_code ec) override |
|
bool | has_read_write () const override |
| Check if there are read-write destinations that could be used. More...
|
|
bool | has_read_only () const override |
| Check if there are read-only destinations that could be used. More...
|
|
| DestinationManager (net::io_context &io_ctx, MySQLRoutingContext &routing_ctx) |
| Default constructor. More...
|
|
virtual | ~DestinationManager ()=default |
| Destructor. More...
|
|
| DestinationManager (const DestinationManager &other)=delete |
|
| DestinationManager (DestinationManager &&other)=delete |
|
DestinationManager & | operator= (const DestinationManager &other)=delete |
|
DestinationManager & | operator= (DestinationManager &&other)=delete |
|
virtual mysqlrouter::ServerMode | purpose () const |
|
bool | routing_guidelines_session_rand_used () const |
| Check if routing guidelines uses $.session.rand as a match criterion. More...
|
|
routing_guidelines::Router_info | get_router_info () const |
| Get information about this given Router instance. More...
|
|
AllowedNodesChangeCallbacksListIterator | register_allowed_nodes_change_callback (const AllowedNodesChangedCallback &clb) |
| Registers the callback for notification on the change in the state if the destination nodes. More...
|
|
void | unregister_allowed_nodes_change_callback (const AllowedNodesChangeCallbacksListIterator &it) |
| Unregisters the callback registered with register_allowed_nodes_change_callback(). More...
|
|
void | register_start_router_socket_acceptor (const StartSocketAcceptorCallback &clb) |
| Registers the callback for notification that the routing socket acceptor should accept new connections. More...
|
|
void | unregister_start_router_socket_acceptor () |
| Unregisters the callback registered with register_start_router_socket_acceptor(). More...
|
|
void | register_stop_router_socket_acceptor (const StopSocketAcceptorCallback &clb) |
| Registers the callback for notification that the routing socket acceptor should stop accepting new connections. More...
|
|
void | unregister_stop_router_socket_acceptor () |
| Unregisters the callback registered with register_stop_router_socket_acceptor(). More...
|
|
void | register_md_refresh_callback (const MetadataRefreshCallback &callback) |
| Registers a callback that is going to be used on metadata refresh. More...
|
|
void | unregister_md_refresh_callback () |
| Unregisters the callback registered with register_md_refresh_callback(). More...
|
|