24#ifndef EVENT_TRACKING_LIFECYCLE_CONSUMER_HELPER_H
25#define EVENT_TRACKING_LIFECYCLE_CONSUMER_HELPER_H
81#define PROVIDES_SERVICE_EVENT_TRACKING_LIFECYCLE(component) \
82 PROVIDES_SERVICE(component, event_tracking_lifecycle)
84#define IMPLEMENTS_SERVICE_EVENT_TRACKING_LIFECYCLE(component) \
85 BEGIN_SERVICE_IMPLEMENTATION(component, event_tracking_lifecycle) \
86 Event_tracking_implementation::Event_tracking_lifecycle_implementation:: \
88 Event_tracking_implementation::Event_tracking_lifecycle_implementation:: \
90 END_SERVICE_IMPLEMENTATION()
120 if (!data)
return true;
140 if (!data)
return true;
Implementation helper class for lifecycle events.
Definition: event_tracking_lifecycle_consumer_helper.h:94
static bool callback(const mysql_event_tracking_shutdown_data *data)
Callback function - To be implemented by component to handle an event.
static bool callback(const mysql_event_tracking_startup_data *data)
Callback function - To be implemented by component to handle an event.
static mysql_service_status_t notify_shutdown(const mysql_event_tracking_shutdown_data *data) noexcept
event_tracking_lifecycle service implementation
Definition: event_tracking_lifecycle_consumer_helper.h:138
static mysql_service_status_t notify_startup(const mysql_event_tracking_startup_data *data) noexcept
event_tracking_lifecycle service implementation
Definition: event_tracking_lifecycle_consumer_helper.h:118
static mysql_event_tracking_shutdown_subclass_t shutdown_filtered_sub_events
Sub-events to be filtered/ignored - To be defined by the component.
Definition: event_tracking_lifecycle_consumer_helper.h:100
static mysql_event_tracking_startup_subclass_t startup_filtered_sub_events
Sub-events to be filtered/ignored - To be defined by the component.
Definition: event_tracking_lifecycle_consumer_helper.h:97
Specifies macros to define Components.
unsigned long mysql_event_tracking_shutdown_subclass_t
Events for Shutdown event tracking.
Definition: event_tracking_lifecycle_defs.h:68
unsigned long mysql_event_tracking_startup_subclass_t
Events for Startup event tracking.
Definition: event_tracking_lifecycle_defs.h:42
Program lifecycle event tracking.
Definition: event_tracking_authentication_consumer_helper.h:81
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
Structure for Shutdown event tracking.
Definition: event_tracking_lifecycle_defs.h:87
mysql_event_tracking_shutdown_subclass_t event_subclass
Shutdown event.
Definition: event_tracking_lifecycle_defs.h:89
Structure for Startup event tracking.
Definition: event_tracking_lifecycle_defs.h:49
mysql_event_tracking_startup_subclass_t event_subclass
Event subclass.
Definition: event_tracking_lifecycle_defs.h:51