MySQL 8.0.40
Source Code Documentation
Registry_module Class Reference

This is the implementation of the registry module interface. More...

#include <registry.h>

Inheritance diagram for Registry_module:
[legend]

Public Member Functions

 Registry_module ()
 
 ~Registry_module () override
 
bool initialize () override
 Initializes the registry handles. More...
 
bool finalize () override
 SHALL release the registry handles and frees memory that may have been in use. More...
 
const mysql_service_registry_tget_registry_handle () override
 SHALL return the service registry handle if initialized already. More...
 
const mysql_service_registry_query_tget_registry_query_handle () override
 SHALL return the service registry query handle if initialized already. More...
 
- Public Member Functions inherited from Registry_module_interface
virtual ~Registry_module_interface ()=default
 

Private Member Functions

 Registry_module (const Registry_module &rhs)
 
Registry_moduleoperator= (const Registry_module rhs)
 

Private Attributes

const mysql_service_registry_tm_registry
 Cached reference to the service registry. More...
 
const mysql_service_registry_query_tm_registry_query
 Cached reference to the registry query service. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Registry_module_interface
static const std::string SVC_NAME_MEMBERSHIP
 The name of the membership service. More...
 
static const std::string SVC_NAME_STATUS
 The name of the member status service. More...
 
static const std::string SVC_NAME_REGISTRY_QUERY
 The name of the registry query service. More...
 

Detailed Description

This is the implementation of the registry module interface.

This implementation will acquire a reference to the service registry and to the registry query service when initialized. It will only release these references when the module is finalized.

Constructor & Destructor Documentation

◆ Registry_module() [1/2]

Registry_module::Registry_module ( const Registry_module rhs)
private

◆ Registry_module() [2/2]

Registry_module::Registry_module ( )
inline

◆ ~Registry_module()

Registry_module::~Registry_module ( )
inlineoverride

Member Function Documentation

◆ finalize()

bool Registry_module::finalize ( )
overridevirtual

SHALL release the registry handles and frees memory that may have been in use.

Clean up.

Returns
true if there was an error, false otherwise.

Implements Registry_module_interface.

◆ get_registry_handle()

const mysql_service_registry_t * Registry_module::get_registry_handle ( )
overridevirtual

SHALL return the service registry handle if initialized already.

Returns
the service registry handle if initialized. NULL otherwise.

Implements Registry_module_interface.

◆ get_registry_query_handle()

const mysql_service_registry_query_t * Registry_module::get_registry_query_handle ( )
overridevirtual

SHALL return the service registry query handle if initialized already.

Returns
the service registry query handle if initialized. NULL otherwise.

Implements Registry_module_interface.

◆ initialize()

bool Registry_module::initialize ( )
overridevirtual

Initializes the registry handles.

It acquires registry handles and allocates required memory.

Returns
true if there was an error, false otherwise.

Implements Registry_module_interface.

◆ operator=()

Registry_module & Registry_module::operator= ( const Registry_module  rhs)
private

Member Data Documentation

◆ m_registry

const mysql_service_registry_t* Registry_module::m_registry
private

Cached reference to the service registry.

◆ m_registry_query

const mysql_service_registry_query_t* Registry_module::m_registry_query
private

Cached reference to the registry query service.


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