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,
74 bool state_changed(
const int state,
const EventId event_id,
75 const std::string &additional_tag =
"");
90 void remove_tag(
const std::string &tag);
102 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:104
EventStateTracker operator=(const EventStateTracker &)=delete
EventStateTracker()=default
std::pair< size_t, size_t > Key
Definition: event_state_tracker.h:102
std::map< Key, int > events_
Definition: event_state_tracker.h:103
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:146