MySQL 8.0.39
Source Code Documentation
Channel_observation_manager_list Class Reference

A class to hold different channel observation manager. More...

#include <channel_observation_manager.h>

Public Member Functions

 Channel_observation_manager_list (MYSQL_PLUGIN plugin_info, uint num_managers)
 Constructor. More...
 
 ~Channel_observation_manager_list ()
 Destructor. More...
 
void add_channel_observation_manager (Channel_observation_manager *manager)
 A method to add channel observation manager to the channel_observation_manager list. More...
 
void remove_channel_observation_manager (Channel_observation_manager *manager)
 A method to remove a channel observation manager from channel_observation_manager list. More...
 
std::list< Channel_observation_manager * > & get_channel_observation_manager_list ()
 Get all the channel observation manager. More...
 
Channel_observation_managerget_channel_observation_manager (uint position=0)
 Get particular channel observation manager. More...
 

Private Attributes

Binlog_relay_IO_observer server_channel_state_observers
 Server relay log observer struct. More...
 
MYSQL_PLUGIN group_replication_plugin_info
 server plugin handle More...
 
std::list< Channel_observation_manager * > channel_observation_manager
 list of channel observation manager More...
 

Detailed Description

A class to hold different channel observation manager.

Note
Slave channels observation and group replication channel observation serves different purposes and can interfere with one another. For that reason they are separated here.

Constructor & Destructor Documentation

◆ Channel_observation_manager_list()

Channel_observation_manager_list::Channel_observation_manager_list ( MYSQL_PLUGIN  plugin_info,
uint  num_managers 
)

Constructor.

Initializes the given number of channel observation manager and register an observer in the server.

Parameters
plugin_infoThe plugin info to register the hooks
num_managersThe number of channel observation manager instantiated

◆ ~Channel_observation_manager_list()

Channel_observation_manager_list::~Channel_observation_manager_list ( )

Destructor.

Unregister the server observer and deletes all the channel observation manager.

Member Function Documentation

◆ add_channel_observation_manager()

void Channel_observation_manager_list::add_channel_observation_manager ( Channel_observation_manager manager)

A method to add channel observation manager to the channel_observation_manager list.

Parameters
managerA channel observation manager implementation.

◆ get_channel_observation_manager()

Channel_observation_manager * Channel_observation_manager_list::get_channel_observation_manager ( uint  position = 0)

Get particular channel observation manager.

Parameters
positionget iterator value at position
Returns
The channel observation manager

◆ get_channel_observation_manager_list()

std::list< Channel_observation_manager * > & Channel_observation_manager_list::get_channel_observation_manager_list ( )

Get all the channel observation manager.

Returns
The list of all channel observation manager

◆ remove_channel_observation_manager()

void Channel_observation_manager_list::remove_channel_observation_manager ( Channel_observation_manager manager)

A method to remove a channel observation manager from channel_observation_manager list.

Parameters
managerA channel observation manager implementation.

Member Data Documentation

◆ channel_observation_manager

std::list<Channel_observation_manager *> Channel_observation_manager_list::channel_observation_manager
private

list of channel observation manager

◆ group_replication_plugin_info

MYSQL_PLUGIN Channel_observation_manager_list::group_replication_plugin_info
private

server plugin handle

◆ server_channel_state_observers

Binlog_relay_IO_observer Channel_observation_manager_list::server_channel_state_observers
private

Server relay log observer struct.


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