MySQL 8.0.40
Source Code Documentation
Data_notification Class Reference

Notification used to inform that data has been totally ordered. More...

#include <gcs_xcom_notification.h>

Inheritance diagram for Data_notification:
[legend]

Public Member Functions

 Data_notification (xcom_receive_data_functor *functor, synode_no message_id, synode_no origin, Gcs_xcom_nodes *xcom_nodes, synode_no last_removed, u_int size, char *data)
 Constructor for Data_notification. More...
 
 ~Data_notification () override
 Destructor for Data_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 which calls the functor with the parameters provided in the constructor. More...
 
 Data_notification (Data_notification const &)
 
Data_notificationoperator= (Data_notification const &)
 

Private Attributes

xcom_receive_data_functorm_functor
 
synode_no m_message_id
 
synode_no m_origin
 
Gcs_xcom_nodesm_xcom_nodes
 
synode_no m_last_removed
 
u_int m_size
 
char * m_data
 

Detailed Description

Notification used to inform that data has been totally ordered.

Constructor & Destructor Documentation

◆ Data_notification() [1/2]

Data_notification::Data_notification ( xcom_receive_data_functor functor,
synode_no  message_id,
synode_no  origin,
Gcs_xcom_nodes xcom_nodes,
synode_no  last_removed,
u_int  size,
char *  data 
)
explicit

Constructor for Data_notification.

Parameters
functorPointer to a function that contains that actual core of the execution.
message_idMessaged Id.
originXCom synod of origin.
xcom_nodesSet of nodes that participated in the consensus to deliver the message.
sizeSize of the message's content.
last_removedThe synode_no of the last message removed from the XCom cache. Used to update the suspicions manager.
dataThis is the message's content.

◆ ~Data_notification()

Data_notification::~Data_notification ( )
overridedefault

Destructor for Data_notification.

◆ Data_notification() [2/2]

Data_notification::Data_notification ( Data_notification const &  )
private

Member Function Documentation

◆ do_execute()

void Data_notification::do_execute ( )
overrideprivatevirtual

Task implemented by this notification which calls the functor with the parameters provided in the constructor.

Implements Parameterized_notification< false >.

◆ operator=()

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

Member Data Documentation

◆ m_data

char* Data_notification::m_data
private

◆ m_functor

xcom_receive_data_functor* Data_notification::m_functor
private

◆ m_last_removed

synode_no Data_notification::m_last_removed
private

◆ m_message_id

synode_no Data_notification::m_message_id
private

◆ m_origin

synode_no Data_notification::m_origin
private

◆ m_size

u_int Data_notification::m_size
private

◆ m_xcom_nodes

Gcs_xcom_nodes* Data_notification::m_xcom_nodes
private

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