26#ifndef CLUSTER_METADATA_DYNAMIC_STATE_INCLUDED
27#define CLUSTER_METADATA_DYNAMIC_STATE_INCLUDED
86 bool save(std::ostream &state_stream);
95 void set_cluster_type_specific_id(
96 const std::string &cluster_type_specific_id);
104 void set_clusterset_id(
const std::string &clusterset_id);
112 void set_metadata_servers(
const std::vector<std::string> &metadata_servers);
120 std::vector<std::string> get_metadata_servers()
const;
136 unsigned get_view_id()
const;
143 std::string get_cluster_type_specific_id()
const;
157 bool is_clusterset()
const;
168 uint64_t view_id_{0};
170 bool changed_{
false};
DynamicState represents a MySQLRouter dynamic state object.
Definition: dynamic_state.h:64
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:308
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:60