MySQL 8.0.40
Source Code Documentation
Global_view_notification Class Reference

Notification used to inform there have been change to the configuration, i.e. More...

#include <gcs_xcom_notification.h>

Inheritance diagram for Global_view_notification:
[legend]

Public Member Functions

 Global_view_notification (xcom_global_view_functor *functor, synode_no config_id, synode_no message_id, Gcs_xcom_nodes *xcom_nodes, xcom_event_horizon event_horizon, synode_no max_synode)
 Constructor for Global_view_notification. More...
 
 ~Global_view_notification () override
 Destructor for Global_view_notification. More...
 
- Public Member Functions inherited from Parameterized_notification< false >
 Parameterized_notification ()=default
 Constructor for Parameterized_notification. More...
 
 ~Parameterized_notification () override=default
 Destructor for Parameterized_notification. More...
 
bool operator() () override
 Task implemented by this notification which calls do_execute. More...
 
- Public Member Functions inherited from Gcs_xcom_notification
 Gcs_xcom_notification ()=default
 Constructor for Gcs_xcom_notification which an abstract class that represents notifications sent from XCOM to MySQL GCS. More...
 
virtual ~Gcs_xcom_notification ()=default
 Destructor for the Gcs_xcom_notification. More...
 

Private Member Functions

void do_execute () override
 Task implemented by this notification. More...
 
 Global_view_notification (Global_view_notification const &)
 
Global_view_notificationoperator= (Global_view_notification const &)
 

Private Attributes

xcom_global_view_functorm_functor
 
synode_no m_config_id
 
synode_no m_message_id
 
Gcs_xcom_nodesm_xcom_nodes
 
xcom_event_horizon m_event_horizon
 
synode_no m_max_synode
 

Detailed Description

Notification used to inform there have been change to the configuration, i.e.

nodes have been added, removed or considered dead/faulty.

Constructor & Destructor Documentation

◆ Global_view_notification() [1/2]

Global_view_notification::Global_view_notification ( xcom_global_view_functor functor,
synode_no  config_id,
synode_no  message_id,
Gcs_xcom_nodes xcom_nodes,
xcom_event_horizon  event_horizon,
synode_no  max_synode 
)
explicit

Constructor for Global_view_notification.

Parameters
functorPointer to a function that contains that actual core of the execution.
config_idMessage Id when the configuration, i.e. nodes, was installed.
message_idMessaged Id.
xcom_nodesSet of nodes that participated in the consensus to deliver the message.
event_horizonthe XCom configuration's event horizon
max_synodeXCom max synode

◆ ~Global_view_notification()

Global_view_notification::~Global_view_notification ( )
overridedefault

Destructor for Global_view_notification.

◆ Global_view_notification() [2/2]

Global_view_notification::Global_view_notification ( Global_view_notification const &  )
private

Member Function Documentation

◆ do_execute()

void Global_view_notification::do_execute ( )
overrideprivatevirtual

Task implemented by this notification.

Implements Parameterized_notification< false >.

◆ operator=()

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

Member Data Documentation

◆ m_config_id

synode_no Global_view_notification::m_config_id
private

◆ m_event_horizon

xcom_event_horizon Global_view_notification::m_event_horizon
private

◆ m_functor

xcom_global_view_functor* Global_view_notification::m_functor
private

◆ m_max_synode

synode_no Global_view_notification::m_max_synode
private

◆ m_message_id

synode_no Global_view_notification::m_message_id
private

◆ m_xcom_nodes

Gcs_xcom_nodes* Global_view_notification::m_xcom_nodes
private

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