25#ifndef CLUSTER_METADATA_DYNAMIC_STATE_INCLUDED
26#define CLUSTER_METADATA_DYNAMIC_STATE_INCLUDED
85 bool save(std::ostream &state_stream);
94 void set_cluster_type_specific_id(
95 const std::string &cluster_type_specific_id);
103 void set_clusterset_id(
const std::string &clusterset_id);
111 void set_metadata_servers(
const std::vector<std::string> &metadata_servers);
119 std::vector<std::string> get_metadata_servers()
const;
135 unsigned get_view_id()
const;
142 std::string get_cluster_type_specific_id()
const;
156 bool is_clusterset()
const;
167 uint64_t view_id_{0};
169 bool changed_{
false};
DynamicState represents a MySQLRouter dynamic state object.
Definition: dynamic_state.h:63
bool load(THD *, const dd::String_type &fname, dd::String_type *buf)
Read an sdi file from disk and store in a buffer.
Definition: sdi_file.cc:307
ClusterType
Definition: cluster_metadata.h:141
#define ROUTER_LIB_EXPORT
Definition: router_export.h:15
static void set_view_id(void *const context, const char &value, size_t length)
Definition: table_replication_group_member_stats.cc:59