26#ifndef ROUTING_SHARED_QUARANTINE_HANDLER_INCLUDED
27#define ROUTING_SHARED_QUARANTINE_HANDLER_INCLUDED
93 void refresh(
const std::string &instance_name,
bool some_bool,
Definition: shared_quarantine_handler.h:35
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:91
std::function< void()> stop_callback_type
Definition: shared_quarantine_handler.h:41
std::function< bool(mysql_harness::Destination)> is_quarantined_callback_type
Definition: shared_quarantine_handler.h:40
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:52
void stop()
Definition: shared_quarantine_handler.h:81
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:79
stop_callback_type on_stop_
Definition: shared_quarantine_handler.h:112
bool update(const mysql_harness::Destination &dest, bool success)
Definition: shared_quarantine_handler.h:54
refresh_callback_type on_refresh_
Definition: shared_quarantine_handler.h:113
update_callback_type on_update_
Definition: shared_quarantine_handler.h:109
std::function< bool(mysql_harness::Destination, bool)> update_callback_type
Definition: shared_quarantine_handler.h:38
std::function< void(const std::string &, const bool, const AllowedNodes &)> refresh_callback_type
Definition: shared_quarantine_handler.h:44
bool is_quarantined(const mysql_harness::Destination &dest) const
Definition: shared_quarantine_handler.h:69
void reset()
Unregister all of the destination candidates quarantine callbacks.
Definition: shared_quarantine_handler.h:101
void refresh(const std::string &instance_name, bool some_bool, const AllowedNodes &allowed_nodes)
Definition: shared_quarantine_handler.h:93
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:65
is_quarantined_callback_type on_is_quarantined_
Definition: shared_quarantine_handler.h:111
Definition: destination.h:95
std::vector< AvailableDestination > AllowedNodes
Definition: destination_status_types.h:62