MySQL 9.1.0
Source Code Documentation
Registry_module_interface Class Referenceabstract

This is the interface for the registrty module. More...

#include <registry.h>

Inheritance diagram for Registry_module_interface:
[legend]

Public Member Functions

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

Static Public Attributes

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 interface for the registrty module.

This is a convenience class to conduct operations on the service registry. It can be used for instance to cache relevant and frequently used references to service implementations.

Constructor & Destructor Documentation

◆ ~Registry_module_interface()

virtual Registry_module_interface::~Registry_module_interface ( )
virtualdefault

Member Function Documentation

◆ finalize()

virtual bool Registry_module_interface::finalize ( )
pure virtual

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.

Implemented in Registry_module.

◆ get_registry_handle()

virtual const mysql_service_registry_t * Registry_module_interface::get_registry_handle ( )
pure virtual

SHALL return the service registry handle if initialized already.

Returns
the service registry handle if initialized. NULL otherwise.

Implemented in Registry_module.

◆ get_registry_query_handle()

virtual const mysql_service_registry_query_t * Registry_module_interface::get_registry_query_handle ( )
pure virtual

SHALL return the service registry query handle if initialized already.

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

Implemented in Registry_module.

◆ initialize()

virtual bool Registry_module_interface::initialize ( )
pure virtual

Initializes the registry handles.

It acquires registry handles and allocates required memory.

Returns
true if there was an error, false otherwise.

Implemented in Registry_module.

Member Data Documentation

◆ SVC_NAME_MEMBERSHIP

const std::string Registry_module_interface::SVC_NAME_MEMBERSHIP
static
Initial value:
=
"group_membership_listener"

The name of the membership service.

◆ SVC_NAME_REGISTRY_QUERY

const std::string Registry_module_interface::SVC_NAME_REGISTRY_QUERY
static
Initial value:
=
"registry_query"

The name of the registry query service.

◆ SVC_NAME_STATUS

const std::string Registry_module_interface::SVC_NAME_STATUS
static
Initial value:
=
"group_member_status_listener"

The name of the member status service.


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