24#ifndef GMS_LISTENER_TEST_H
25#define GMS_LISTENER_TEST_H
30#define GMS_LISTENER_EXAMPLE_NAME "group_membership_listener.gr_example"
31#define GMST_LISTENER_EXAMPLE_NAME "group_member_status_listener.gr_example"
Definition: gms_listener_test.h:70
int m_error
Definition: gms_listener_test.h:106
virtual ~Gms_listener_test_parameters()
Definition: gms_listener_test.h:79
Gms_listener_test_parameters(const std::string &message)
Gms_listener_test_parameters constructor.
Definition: gms_listener_test.h:77
const std::string & get_message()
Get message to add to the table.
Definition: gms_listener_test.cc:57
void set_error(int error)
Set value for class private member error.
Definition: gms_listener_test.cc:55
const std::string m_message
Definition: gms_listener_test.h:105
int get_error()
Get value for class private member error.
Definition: gms_listener_test.cc:53
Definition: gms_listener_test.h:109
void run(Mysql_thread_body_parameters *parameters) override
Method that will be run on mysql_thread.
Definition: gms_listener_test.cc:79
virtual ~Gms_listener_test() override=default
Gms_listener_test()=default
bool log_notification_to_test_table(const std::string &message)
Log the notification message to the test table.
Definition: gms_listener_test.cc:61
Interface for Mysql_thread_body parameters.
Definition: mysql_thread.h:39
Interface for Mysql_thread_body, the task of a Mysql_thread.
Definition: mysql_thread.h:108
An example implementation of the group_member_status_listener service.
Definition: gms_listener_test.h:57
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
An example implementation of the group_membership_listener service.
Definition: gms_listener_test.h:40
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
void unregister_listener_service_gr_example()
Definition: gms_listener_test.cc:261
void register_listener_service_gr_example()
Definition: gms_listener_test.cc:265
Specifies macros to define Service Implementations.
#define DEFINE_BOOL_METHOD(name, args)
A short macro to define method that returns bool, which is the most common case.
Definition: service_implementation.h:88