24#ifndef STAGE_MONITOR_HANDLER_INCLUDED
25#define STAGE_MONITOR_HANDLER_INCLUDED
Definition: stage_monitor_handler.h:30
int initialize_stage_monitor()
Fetch the registry and the service for this class.
Definition: stage_monitor_handler.cc:62
int set_stage(PSI_stage_key key, const char *file, int line, ulonglong estimated_work, ulonglong work_completed)
Set that a new stage is now in progress.
Definition: stage_monitor_handler.cc:79
int terminate_stage_monitor()
Terminate the stage monitor.
Definition: stage_monitor_handler.cc:41
PSI_stage_progress * stage_progress_handler
The progress handler when a stage is running.
Definition: stage_monitor_handler.h:85
void end_stage()
End the current stage.
Definition: stage_monitor_handler.cc:127
void set_completed_work(ulonglong completed_work)
Set the currently completed work for this stage.
Definition: stage_monitor_handler.cc:115
Plugin_stage_monitor_handler()
Definition: stage_monitor_handler.cc:29
virtual ~Plugin_stage_monitor_handler()
Definition: stage_monitor_handler.cc:37
my_h_service generic_service
The generic service handle for the PSI stage service.
Definition: stage_monitor_handler.h:83
void set_estimated_work(ulonglong estimated_work)
Set the currently estimated work for this stage.
Definition: stage_monitor_handler.cc:103
bool service_running
Is the reference to the PSI stage service still valid.
Definition: stage_monitor_handler.h:87
mysql_mutex_t stage_monitor_lock
Lock for use vs termination scenarios.
Definition: stage_monitor_handler.h:89
unsigned int PSI_stage_key
Instrumented stage key.
Definition: psi_stage_bits.h:43
struct my_h_service_imp * my_h_service
A handle type for acquired Service.
Definition: registry.h:33
unsigned long long int ulonglong
Definition: my_inttypes.h:56
required string key
Definition: replication_asynchronous_connection_failover.proto:60
Interface for an instrumented stage progress.
Definition: psi_stage_bits.h:63
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50