MySQL 8.3.0
Source Code Documentation
Gcs_xcom_statistics_manager_interface Class Referenceabstract

This class is the storage and provider of all statistics coming from either XCom and GCS. More...

#include <gcs_xcom_statistics_manager.h>

Inheritance diagram for Gcs_xcom_statistics_manager_interface:
[legend]

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_suspiciousget_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...
 

Detailed Description

This class is the storage and provider of all statistics coming from either XCom and GCS.

Constructor & Destructor Documentation

◆ Gcs_xcom_statistics_manager_interface()

Gcs_xcom_statistics_manager_interface::Gcs_xcom_statistics_manager_interface ( )
default

◆ ~Gcs_xcom_statistics_manager_interface()

virtual Gcs_xcom_statistics_manager_interface::~Gcs_xcom_statistics_manager_interface ( )
virtualdefault

Member Function Documentation

◆ add_suspicious_for_a_node()

virtual void Gcs_xcom_statistics_manager_interface::add_suspicious_for_a_node ( std::string  node_id)
pure virtual

Adds a suspicious count for a provided node.

Parameters
node_idThe node identifier to add a suspicious. It must be in address:port format as provided by
See also
Gcs_member_identifier

Implemented in Gcs_xcom_statistics_manager_interface_impl.

◆ get_all_suspicious()

virtual std::vector< Gcs_node_suspicious > Gcs_xcom_statistics_manager_interface::get_all_suspicious ( ) const
pure virtual

Get all suspicious seen by this node.

Returns
std::vector<Gcs_node_suspicious> a vector containing all suspicious seen by this local node

Implemented in Gcs_xcom_statistics_manager_interface_impl.

◆ get_count_var_value()

virtual uint64_t Gcs_xcom_statistics_manager_interface::get_count_var_value ( Gcs_counter_statistics_enum  to_get) const
pure virtual

Get the value of a provided statistic which is of a discrete growth nature.

Parameters
to_getThe statistic to get.
Returns
uint64_t the value of the statistic

Implemented in Gcs_xcom_statistics_manager_interface_impl.

◆ get_sum_var_value()

virtual uint64_t Gcs_xcom_statistics_manager_interface::get_sum_var_value ( Gcs_cumulative_statistics_enum  to_get) const
pure virtual

Get the value of a provided statistic which is of a cumulative nature.

Parameters
to_getThe statistic to get.
Returns
uint64_t the value of the statistic

Implemented in Gcs_xcom_statistics_manager_interface_impl.

◆ get_timestamp_var_value()

virtual unsigned long long Gcs_xcom_statistics_manager_interface::get_timestamp_var_value ( Gcs_time_statistics_enum  to_get) const
pure virtual

Get the value of a provided statistic which is a timestamp.

Parameters
to_getThe statistic to set.
Returns
unsigned long long The timestamp value of that statistic.

Implemented in Gcs_xcom_statistics_manager_interface_impl.

◆ set_count_var_value()

virtual void Gcs_xcom_statistics_manager_interface::set_count_var_value ( Gcs_counter_statistics_enum  to_set)
pure virtual

Sets the value of a provided statistic which is of a discrete growth nature.

It always adds "+1" to the current value.

Parameters
to_setThe statistic to add.

Implemented in Gcs_xcom_statistics_manager_interface_impl.

◆ set_sum_timestamp_var_value()

virtual void Gcs_xcom_statistics_manager_interface::set_sum_timestamp_var_value ( Gcs_time_statistics_enum  to_set,
unsigned long long  to_add 
)
pure virtual

Sets the value of a provided timestamp statistic which is of a cumulative nature.

Parameters
to_setThe statistic to add.
to_addThe value to add to the provided statistic.

Implemented in Gcs_xcom_statistics_manager_interface_impl.

◆ set_sum_var_value()

virtual void Gcs_xcom_statistics_manager_interface::set_sum_var_value ( Gcs_cumulative_statistics_enum  to_set,
uint64_t  to_add 
)
pure virtual

Sets the value of a provided statistic which is of a cumulative nature.

Parameters
to_setThe statistic to add.
to_addThe value to add to the provided statistic.

Implemented in Gcs_xcom_statistics_manager_interface_impl.

◆ set_timestamp_var_value()

virtual void Gcs_xcom_statistics_manager_interface::set_timestamp_var_value ( Gcs_time_statistics_enum  to_set,
unsigned long long  new_value 
)
pure virtual

Sets the value of a provided timestamp statistic which is of a certain specific value.

Parameters
to_setThe statistic to set.
new_valueThe new value of that statistic.

Implemented in Gcs_xcom_statistics_manager_interface_impl.


The documentation for this class was generated from the following file: