26#ifndef ROUTING_SHARED_QUARANTINE_HANDLER_INCLUDED
27#define ROUTING_SHARED_QUARANTINE_HANDLER_INCLUDED
94 void refresh(
const std::string &instance_name,
bool some_bool,
Definition: shared_quarantine_handler.h:36
void on_refresh(refresh_callback_type clb)
Register a callback used for refreshing the quarantined destinations when there are possible changes ...
Definition: shared_quarantine_handler.h:92
std::function< void()> stop_callback_type
Definition: shared_quarantine_handler.h:42
void on_update(update_callback_type clb)
Register a callback that can to be used to add a destination candidate to the quarantine.
Definition: shared_quarantine_handler.h:53
bool update(const mysql_harness::TCPAddress &addr, bool success)
Definition: shared_quarantine_handler.h:55
void stop()
Definition: shared_quarantine_handler.h:82
void on_stop(stop_callback_type clb)
Register a callback that can be used to stop the unreachable destination candidates quarantine.
Definition: shared_quarantine_handler.h:80
stop_callback_type on_stop_
Definition: shared_quarantine_handler.h:113
refresh_callback_type on_refresh_
Definition: shared_quarantine_handler.h:114
std::function< bool(mysql_harness::TCPAddress)> is_quarantined_callback_type
Definition: shared_quarantine_handler.h:41
update_callback_type on_update_
Definition: shared_quarantine_handler.h:110
std::function< void(const std::string &, const bool, const AllowedNodes &)> refresh_callback_type
Definition: shared_quarantine_handler.h:45
void reset()
Unregister all of the destination candidates quarantine callbacks.
Definition: shared_quarantine_handler.h:102
void refresh(const std::string &instance_name, bool some_bool, const AllowedNodes &allowed_nodes)
Definition: shared_quarantine_handler.h:94
std::function< bool(mysql_harness::TCPAddress, bool)> update_callback_type
Definition: shared_quarantine_handler.h:39
bool is_quarantined(const mysql_harness::TCPAddress &addr) const
Definition: shared_quarantine_handler.h:70
void on_is_quarantined(is_quarantined_callback_type clb)
Register a callback that can be used to check if the given destination candidate is currently quarant...
Definition: shared_quarantine_handler.h:66
is_quarantined_callback_type on_is_quarantined_
Definition: shared_quarantine_handler.h:112
Defines an IP address with port number
Definition: tcp_address.h:40
std::vector< AvailableDestination > AllowedNodes
Definition: destination_status_types.h:62