MySQL 9.3.0
Source Code Documentation
helper::PluginMonitor Class Reference

#include <plugin_monitor.h>

Classes

class  ServiceObserver
 

Public Types

using ServiceName = std::string
 
using Services = std::set< ServiceName >
 
using PluginState = mysql_harness::PluginState
 
using PluginStateObserver = mysql_harness::PluginStateObserver
 

Public Member Functions

 PluginMonitor (PluginState *ps=PluginState::get_instance())
 
 ~PluginMonitor ()
 
bool wait_for_services (const Services &services)
 
void abort ()
 
Services get_active_services ()
 

Private Attributes

PluginStateps_
 
PluginState::ObserverId observer_id_ {PluginState::k_invalid_id_}
 
std::shared_ptr< ServiceObserverobserver_
 
Services active_services_
 
Services active_and_stopped_services_
 

Member Typedef Documentation

◆ PluginState

◆ PluginStateObserver

◆ ServiceName

◆ Services

Constructor & Destructor Documentation

◆ PluginMonitor()

helper::PluginMonitor::PluginMonitor ( PluginState ps = PluginState::get_instance())
inline

◆ ~PluginMonitor()

helper::PluginMonitor::~PluginMonitor ( )
inline

Member Function Documentation

◆ abort()

void helper::PluginMonitor::abort ( )
inline

◆ get_active_services()

Services helper::PluginMonitor::get_active_services ( )
inline

◆ wait_for_services()

bool helper::PluginMonitor::wait_for_services ( const Services services)
inline

Member Data Documentation

◆ active_and_stopped_services_

Services helper::PluginMonitor::active_and_stopped_services_
private

◆ active_services_

Services helper::PluginMonitor::active_services_
private

◆ observer_

std::shared_ptr<ServiceObserver> helper::PluginMonitor::observer_
private

◆ observer_id_

PluginState::ObserverId helper::PluginMonitor::observer_id_ {PluginState::k_invalid_id_}
private

◆ ps_

PluginState* helper::PluginMonitor::ps_
private

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