MySQL 9.1.0
Source Code Documentation
Status_notification Class Reference

Notification used to inform that has been a change in XCOM's state machine such as it has started up or shut down. More...

#include <gcs_xcom_notification.h>

Inheritance diagram for Status_notification:
[legend]

Public Member Functions

 Status_notification (xcom_status_functor *functor, int status)
 Constructor for Status_notification. More...
 
 ~Status_notification () override
 Destructor for Status_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...
 
 Status_notification (Status_notification const &)
 
Status_notificationoperator= (Status_notification const &)
 

Private Attributes

xcom_status_functorm_functor
 
int m_status
 

Detailed Description

Notification used to inform that has been a change in XCOM's state machine such as it has started up or shut down.

Constructor & Destructor Documentation

◆ Status_notification() [1/2]

Status_notification::Status_notification ( xcom_status_functor functor,
int  status 
)
explicit

Constructor for Status_notification.

Parameters
functorPointer to a function that contains that actual core of the execution.
statusXCOM's status.

◆ ~Status_notification()

Status_notification::~Status_notification ( )
overridedefault

Destructor for Status_notification.

◆ Status_notification() [2/2]

Status_notification::Status_notification ( Status_notification const &  )
private

Member Function Documentation

◆ do_execute()

void Status_notification::do_execute ( )
overrideprivatevirtual

Task implemented by this notification.

Implements Parameterized_notification< false >.

◆ operator=()

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

Member Data Documentation

◆ m_functor

xcom_status_functor* Status_notification::m_functor
private

◆ m_status

int Status_notification::m_status
private

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