MySQL 8.4.0
Source Code Documentation
MockServerComponent Class Reference

#include <mock_server_component.h>

Public Member Functions

 MockServerComponent (MockServerComponent const &)=delete
 
void operator= (MockServerComponent const &)=delete
 
void register_server (const std::string &name, std::shared_ptr< server_mock::MySQLServerMock > srv)
 
std::shared_ptr< MockServerGlobalScopeget_global_scope ()
 
void close_all_connections ()
 

Static Public Member Functions

static MockServerComponentget_instance ()
 

Private Member Functions

 MockServerComponent ()=default
 

Private Attributes

Monitor< std::map< std::string, std::weak_ptr< server_mock::MySQLServerMock > > > srvs_ {{}}
 

Constructor & Destructor Documentation

◆ MockServerComponent() [1/2]

MockServerComponent::MockServerComponent ( MockServerComponent const &  )
delete

◆ MockServerComponent() [2/2]

MockServerComponent::MockServerComponent ( )
privatedefault

Member Function Documentation

◆ close_all_connections()

void MockServerComponent::close_all_connections ( )

◆ get_global_scope()

std::shared_ptr< MockServerGlobalScope > MockServerComponent::get_global_scope ( )

◆ get_instance()

MockServerComponent & MockServerComponent::get_instance ( )
static

◆ operator=()

void MockServerComponent::operator= ( MockServerComponent const &  )
delete

◆ register_server()

void MockServerComponent::register_server ( const std::string &  name,
std::shared_ptr< server_mock::MySQLServerMock srv 
)

Member Data Documentation

◆ srvs_

Monitor<std::map<std::string, std::weak_ptr<server_mock::MySQLServerMock> > > MockServerComponent::srvs_ {{}}
private

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