MySQL 9.1.0
Source Code Documentation
gms_listener_test.cc File Reference

Macros

#define UNREGISTER   1
 
#define REGISTER   0
 

Typedefs

using svc_gms_t = mysql_service_group_membership_listener_t
 
using svc_gmst_t = mysql_service_group_member_status_listener_t
 

Functions

static void handle_example_listener (int action)
 
void unregister_listener_service_gr_example ()
 
void register_listener_service_gr_example ()
 

Variables

static const mysql_service_group_membership_listener_t svc_gms_def
 
static const mysql_service_group_member_status_listener_t svc_gmst_def
 
my_h_service h_gms_listener_example
 
my_h_service h_gmst_listener_example
 

Macro Definition Documentation

◆ REGISTER

#define REGISTER   0

◆ UNREGISTER

#define UNREGISTER   1

Typedef Documentation

◆ svc_gms_t

◆ svc_gmst_t

Function Documentation

◆ handle_example_listener()

static void handle_example_listener ( int  action)
static

◆ register_listener_service_gr_example()

void register_listener_service_gr_example ( )

◆ unregister_listener_service_gr_example()

void unregister_listener_service_gr_example ( )

Variable Documentation

◆ h_gms_listener_example

my_h_service h_gms_listener_example
Initial value:
=
reinterpret_cast<my_h_service>(const_cast<svc_gms_t *>(&svc_gms_def))
static const mysql_service_group_membership_listener_t svc_gms_def
Definition: gms_listener_test.cc:38
struct my_h_service_imp * my_h_service
A handle type for acquired Service.
Definition: registry.h:33
A service that listens for notifications about view changes or quorum loss.
Definition: group_membership_listener.h:33

◆ h_gmst_listener_example

my_h_service h_gmst_listener_example
Initial value:
=
reinterpret_cast<my_h_service>(const_cast<svc_gmst_t *>(&svc_gmst_def))
static const mysql_service_group_member_status_listener_t svc_gmst_def
Definition: gms_listener_test.cc:42
A service that listens for notifications about member state or member role updates.
Definition: group_member_status_listener.h:33

◆ svc_gms_def

Initial value:
= {
static mysql_service_status_t notify_view_change(const char *) noexcept
notify_view_change(const char*)
Definition: gms_listener_test.cc:178
static mysql_service_status_t notify_quorum_lost(const char *) noexcept
notify_quorum_lost(const char*)
Definition: gms_listener_test.cc:188

◆ svc_gmst_def

Initial value:
= {
static mysql_service_status_t notify_member_state_change(const char *) noexcept
notify_member_state_change(const char*)
Definition: gms_listener_test.cc:210
static mysql_service_status_t notify_member_role_change(const char *) noexcept
notify_member_role_change(const char*)
Definition: gms_listener_test.cc:199