MySQL 9.1.0
Source Code Documentation
Rpl_filter_statistics Class Reference

The class Rpl_filter_statistics encapsulates the following three statistics of replication filter: The configured_by indicates that how the rpl filter is configured. More...

#include <rpl_filter.h>

Public Member Functions

 Rpl_filter_statistics ()
 
 ~Rpl_filter_statistics ()
 
void reset ()
 
void set_all (enum_configured_by configured_by)
 
enum_configured_by get_configured_by ()
 
ulonglong get_active_since ()
 
ulonglong get_counter ()
 
void increase_counter ()
 

Private Member Functions

 Rpl_filter_statistics (Rpl_filter_statistics const &)
 
Rpl_filter_statisticsoperator= (Rpl_filter_statistics const &)
 

Private Attributes

enum_configured_by m_configured_by
 
ulonglong m_active_since
 
std::atomic< uint64m_atomic_counter {0}
 

Detailed Description

The class Rpl_filter_statistics encapsulates the following three statistics of replication filter: The configured_by indicates that how the rpl filter is configured.

The active_since indicates when the configuration took place. The counter indicates the hit amount of the filter since last configuration. Instances of this class are created in Rpl_filter for each filter type for each channel and the global filter, and have the same life cycle as the instance of Rpl_filter. The reference of this class is used in Rpl_pfs_filter for displaying the three statistics of replication filter in performance_schema.replication_applier_filters table and performance_schema.replication_applier_global_filters table.

Constructor & Destructor Documentation

◆ Rpl_filter_statistics() [1/2]

Rpl_filter_statistics::Rpl_filter_statistics ( )

◆ ~Rpl_filter_statistics()

Rpl_filter_statistics::~Rpl_filter_statistics ( )
default

◆ Rpl_filter_statistics() [2/2]

Rpl_filter_statistics::Rpl_filter_statistics ( Rpl_filter_statistics const &  )
private

Member Function Documentation

◆ get_active_since()

ulonglong Rpl_filter_statistics::get_active_since ( )
inline

◆ get_configured_by()

enum_configured_by Rpl_filter_statistics::get_configured_by ( )
inline

◆ get_counter()

ulonglong Rpl_filter_statistics::get_counter ( )
inline

◆ increase_counter()

void Rpl_filter_statistics::increase_counter ( )
inline

◆ operator=()

Rpl_filter_statistics & Rpl_filter_statistics::operator= ( Rpl_filter_statistics const &  )
private

◆ reset()

void Rpl_filter_statistics::reset ( void  )

◆ set_all()

void Rpl_filter_statistics::set_all ( enum_configured_by  configured_by)

Member Data Documentation

◆ m_active_since

ulonglong Rpl_filter_statistics::m_active_since
private

◆ m_atomic_counter

std::atomic<uint64> Rpl_filter_statistics::m_atomic_counter {0}
private

◆ m_configured_by

enum_configured_by Rpl_filter_statistics::m_configured_by
private

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