|
| 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 void | connect_status (std::error_code ec)=0 |
|
virtual void | start (const mysql_harness::PluginFuncEnv *env)=0 |
| Start the destination manager. More...
|
|
virtual stdx::expected< void, std::error_code > | init_destinations (const routing_guidelines::Session_info &session_info)=0 |
| Set up destination manager, prepare the destinations. More...
|
|
virtual mysqlrouter::ServerMode | purpose () const |
|
virtual bool | refresh_destinations (const routing_guidelines::Session_info &)=0 |
| refresh destinations. More...
|
|
virtual void | handle_sockets_acceptors ()=0 |
| Trigger listening socket acceptors state handler based on the destination type. More...
|
|
virtual std::unique_ptr< Destination > | get_next_destination (const routing_guidelines::Session_info &)=0 |
| Get destination that should be used for connection attempt. More...
|
|
virtual std::unique_ptr< Destination > | get_last_used_destination () const =0 |
| Get destination that was selected as a destination candidate. More...
|
|
virtual std::vector< mysql_harness::Destination > | get_destination_candidates () const =0 |
| Get addresses of all nodes that are a possible destination candidates. More...
|
|
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...
|
|
virtual bool | has_read_write () const =0 |
| Check if there are read-write destinations that could be used. More...
|
|
virtual bool | has_read_only () const =0 |
| Check if there are read-only destinations that could be used. More...
|
|
virtual | ~DestinationNodesStateNotifier ()=default |
|
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...
|
|
void | register_query_quarantined_destinations (const QueryQuarantinedDestinationsCallback &clb) |
| Registers a callback that could be used for checking if the provided destination candidate is currently quarantined. More...
|
|
void | unregister_query_quarantined_destinations () |
| Unregisters the callback registered with register_query_quarantined_destinations(). More...
|
|
virtual bool | is_dynamic () |
| Specifies if the destination addresses can be added/removed from the set. More...
|
|
virtual std::string | get_dynamic_plugin_name () |
|