26#ifndef MYSQL_HARNESS_EVENT_STATE_TRACKER_INCLUDED
27#define MYSQL_HARNESS_EVENT_STATE_TRACKER_INCLUDED
29#include "harness_export.h"
50 MetadataServerConnectedOk,
55 TargetClusterPresentInOptions,
56 ClusterInvalidatedInMetadata,
57 ClusterWasBootstrappedAgainstClusterset,
58 NoRightsToUpdateRouterAttributes
73 bool state_changed(
const int state,
const EventId event_id,
74 const std::string &additional_tag =
"");
89 void remove_tag(
const std::string &tag);
101 using Key = std::pair<size_t, size_t>;
EventStateTracker singleton object keeps track of the current known state of selected event.
Definition: event_state_tracker.h:43
EventStateTracker(const EventStateTracker &)=delete
std::mutex events_mtx_
Definition: event_state_tracker.h:103
EventStateTracker operator=(const EventStateTracker &)=delete
EventStateTracker()=default
std::pair< size_t, size_t > Key
Definition: event_state_tracker.h:101
std::map< Key, int > events_
Definition: event_state_tracker.h:102
EventId
List of the events that can currently be tracked.
Definition: event_state_tracker.h:49
static mysql_service_status_t clear(reference_caching_channel channel) noexcept
Definition: component.cc:154