MySQL  8.0.16
Source Code Documentation
Rpl_pfs_filter Class Reference

The class Rpl_pfs_filter is introduced to serve the performance_schema.replication_applier_filters table and performance_schema.replication_applier_global_filters table to collect data for a row. More...

#include <rpl_filter.h>

Public Member Functions

 Rpl_pfs_filter ()
 
 Rpl_pfs_filter (const char *channel_name, const char *filter_name, const String &filter_rule, Rpl_filter_statistics *rpl_filter_statistics)
 
 Rpl_pfs_filter (const Rpl_pfs_filter &other)
 
 ~Rpl_pfs_filter ()
 
const char * get_channel_name ()
 
const char * get_filter_name ()
 
const Stringget_filter_rule ()
 
Rpl_filter_statisticsget_rpl_filter_statistics ()
 

Private Member Functions

Rpl_pfs_filteroperator= (Rpl_pfs_filter const &)
 

Private Attributes

const char * m_channel_name
 
const char * m_filter_name
 
Rpl_filter_statisticsm_rpl_filter_statistics
 
String m_filter_rule
 

Detailed Description

The class Rpl_pfs_filter is introduced to serve the performance_schema.replication_applier_filters table and performance_schema.replication_applier_global_filters table to collect data for a row.

The class Rpl_filter does not use it directly, since it contains channel_name, which does not belong to Rpl_filter. To decouple code, it depends on Rpl_filter_statistics, does not inherit Rpl_filter_statistics. Instances of this class are created in Rpl_filter for each filter type for each channel and the global filter. Each instance is created when creating, changing or deleting the filter, destroyed when creating, changing or deleting the filter next time.

Constructor & Destructor Documentation

◆ Rpl_pfs_filter() [1/3]

Rpl_pfs_filter::Rpl_pfs_filter ( )

◆ Rpl_pfs_filter() [2/3]

Rpl_pfs_filter::Rpl_pfs_filter ( const char *  channel_name,
const char *  filter_name,
const String filter_rule,
Rpl_filter_statistics rpl_filter_statistics 
)

◆ Rpl_pfs_filter() [3/3]

Rpl_pfs_filter::Rpl_pfs_filter ( const Rpl_pfs_filter other)

◆ ~Rpl_pfs_filter()

Rpl_pfs_filter::~Rpl_pfs_filter ( )

Member Function Documentation

◆ get_channel_name()

const char* Rpl_pfs_filter::get_channel_name ( )
inline

◆ get_filter_name()

const char* Rpl_pfs_filter::get_filter_name ( )
inline

◆ get_filter_rule()

const String& Rpl_pfs_filter::get_filter_rule ( )
inline

◆ get_rpl_filter_statistics()

Rpl_filter_statistics* Rpl_pfs_filter::get_rpl_filter_statistics ( )
inline

◆ operator=()

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

Member Data Documentation

◆ m_channel_name

const char* Rpl_pfs_filter::m_channel_name
private

◆ m_filter_name

const char* Rpl_pfs_filter::m_filter_name
private

◆ m_filter_rule

String Rpl_pfs_filter::m_filter_rule
private

◆ m_rpl_filter_statistics

Rpl_filter_statistics* Rpl_pfs_filter::m_rpl_filter_statistics
private

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