MySQL 9.1.0
Source Code Documentation
|
This class is the storage and provider of all statistics coming from either XCom and GCS. More...
#include <gcs_xcom_statistics_manager.h>
Public Member Functions | |
Gcs_xcom_statistics_manager_interface ()=default | |
virtual | ~Gcs_xcom_statistics_manager_interface ()=default |
virtual uint64_t | get_sum_var_value (Gcs_cumulative_statistics_enum to_get) const =0 |
Get the value of a provided statistic which is of a cumulative nature. More... | |
virtual void | set_sum_var_value (Gcs_cumulative_statistics_enum to_set, uint64_t to_add)=0 |
Sets the value of a provided statistic which is of a cumulative nature. More... | |
virtual uint64_t | get_count_var_value (Gcs_counter_statistics_enum to_get) const =0 |
Get the value of a provided statistic which is of a discrete growth nature. More... | |
virtual void | set_count_var_value (Gcs_counter_statistics_enum to_set)=0 |
Sets the value of a provided statistic which is of a discrete growth nature. More... | |
virtual unsigned long long | get_timestamp_var_value (Gcs_time_statistics_enum to_get) const =0 |
Get the value of a provided statistic which is a timestamp. More... | |
virtual void | set_timestamp_var_value (Gcs_time_statistics_enum to_set, unsigned long long new_value)=0 |
Sets the value of a provided timestamp statistic which is of a certain specific value. More... | |
virtual void | set_sum_timestamp_var_value (Gcs_time_statistics_enum to_set, unsigned long long to_add)=0 |
Sets the value of a provided timestamp statistic which is of a cumulative nature. More... | |
virtual std::vector< Gcs_node_suspicious > | get_all_suspicious () const =0 |
Get all suspicious seen by this node. More... | |
virtual void | add_suspicious_for_a_node (std::string node_id)=0 |
Adds a suspicious count for a provided node. More... | |
This class is the storage and provider of all statistics coming from either XCom and GCS.
|
default |
|
virtualdefault |
|
pure virtual |
Adds a suspicious count for a provided node.
node_id | The node identifier to add a suspicious. It must be in address:port format as provided by |
Implemented in Gcs_xcom_statistics_manager_interface_impl.
|
pure virtual |
Get all suspicious seen by this node.
Implemented in Gcs_xcom_statistics_manager_interface_impl.
|
pure virtual |
Get the value of a provided statistic which is of a discrete growth nature.
to_get | The statistic to get. |
Implemented in Gcs_xcom_statistics_manager_interface_impl.
|
pure virtual |
Get the value of a provided statistic which is of a cumulative nature.
to_get | The statistic to get. |
Implemented in Gcs_xcom_statistics_manager_interface_impl.
|
pure virtual |
Get the value of a provided statistic which is a timestamp.
to_get | The statistic to set. |
Implemented in Gcs_xcom_statistics_manager_interface_impl.
|
pure virtual |
Sets the value of a provided statistic which is of a discrete growth nature.
It always adds "+1" to the current value.
to_set | The statistic to add. |
Implemented in Gcs_xcom_statistics_manager_interface_impl.
|
pure virtual |
Sets the value of a provided timestamp statistic which is of a cumulative nature.
to_set | The statistic to add. |
to_add | The value to add to the provided statistic. |
Implemented in Gcs_xcom_statistics_manager_interface_impl.
|
pure virtual |
Sets the value of a provided statistic which is of a cumulative nature.
to_set | The statistic to add. |
to_add | The value to add to the provided statistic. |
Implemented in Gcs_xcom_statistics_manager_interface_impl.
|
pure virtual |
Sets the value of a provided timestamp statistic which is of a certain specific value.
to_set | The statistic to set. |
new_value | The new value of that statistic. |
Implemented in Gcs_xcom_statistics_manager_interface_impl.