26#ifndef MYSQLROUTER_DESTINATION_STATUS_COMPONENT_INCLUDED
27#define MYSQLROUTER_DESTINATION_STATUS_COMPONENT_INCLUDED
31#include <unordered_map>
72 uint32_t qurantine_threshold);
80 void register_quarantine_callbacks(
85 void unregister_quarantine_callbacks();
92 void register_route(
const std::string &
name);
128 void stop_unreachable_destinations_quarantine();
146 void refresh_destinations_quarantine(
const std::string &instance_name,
147 const bool nodes_changed_on_md_refresh,
153 std::unique_ptr<UnreachableDestinationsQuarantine>
static mysql_service_status_t init()
Component initialization.
Definition: audit_api_message_emit.cc:571
Shared component representing status of the routing destinations.
Definition: destination_status_component.h:46
std::unique_ptr< UnreachableDestinationsQuarantine > unreachable_destinations_quarantine_
Definition: destination_status_component.h:154
void operator=(DestinationStatusComponent const &)=delete
DestinationStatusComponent(DestinationStatusComponent const &)=delete
~DestinationStatusComponent()
DestinationStatusComponent(DestinationStatusComponent &&)=delete
void operator=(DestinationStatusComponent &&)=delete
Information about unreachable destination candidates that is shared between plugin instances.
Definition: unreachable_destinations_quarantine.h:49
Defines an IP address with port number
Definition: tcp_address.h:40
#define DESTINATION_STATUS_EXPORT
Definition: destination_status_export.h:15
std::vector< AvailableDestination > AllowedNodes
Definition: destination_status_types.h:62
case opt name
Definition: sslopt-case.h:29
Definition: destination_status_types.h:35
double seconds()
Definition: task.cc:310