diff --git a/locator/gossiping_property_file_snitch.hh b/locator/gossiping_property_file_snitch.hh index 00941a202f..911c699b9e 100644 --- a/locator/gossiping_property_file_snitch.hh +++ b/locator/gossiping_property_file_snitch.hh @@ -127,6 +127,10 @@ private: */ void set_stopped(); + virtual sstring get_name() const { + return "org.apache.cassandra.locator.GossipingPropertyFileSnitch"; + } + private: sstring _fname; timer<> _file_reader; diff --git a/locator/rack_inferring_snitch.hh b/locator/rack_inferring_snitch.hh index 7284a0eb95..dce97c0881 100644 --- a/locator/rack_inferring_snitch.hh +++ b/locator/rack_inferring_snitch.hh @@ -56,6 +56,10 @@ struct rack_inferring_snitch : public snitch_base { _state = snitch_state::stopped; return make_ready_future<>(); } + + virtual sstring get_name() const { + return "org.apache.cassandra.locator.RackInferringSnitch"; + } }; } // namespace locator diff --git a/locator/simple_snitch.hh b/locator/simple_snitch.hh index ec82999389..a8a021bfe0 100644 --- a/locator/simple_snitch.hh +++ b/locator/simple_snitch.hh @@ -76,6 +76,10 @@ struct simple_snitch : public snitch_base { _state = snitch_state::stopped; return make_ready_future<>(); } + + virtual sstring get_name() const { + return "org.apache.cassandra.locator.SimpleSnitch"; + } }; } diff --git a/locator/snitch_base.hh b/locator/snitch_base.hh index 2c0a8b5d93..ab6b38fa90 100644 --- a/locator/snitch_base.hh +++ b/locator/snitch_base.hh @@ -114,6 +114,8 @@ struct i_endpoint_snitch { _snitch_is_ready.set_value(); } + virtual sstring get_name() const = 0; + protected: static unsigned& io_cpu_id() { static unsigned id = 0;