MySQL 8.0.40
Source Code Documentation
Gcs_interface_factory Class Reference

This class shall be used by an API user as an aggregator utility to retrieve implementations of Gcs_interface. More...

#include <gcs_interface.h>

Static Public Member Functions

static Gcs_interfaceget_interface_implementation (enum_available_interfaces binding)
 Static method that allows retrieval of an instantiated implementation of a binding implementation. More...
 
static Gcs_interfaceget_interface_implementation (const std::string &binding)
 Static method that allows retrieval of an instantiated implementation of a binding implementation. More...
 
static void cleanup (enum_available_interfaces binding)
 Static method that allows the cleanup of the Gcs_interface singleton instance according to the binding parameter. More...
 
static void cleanup (const std::string &binding)
 Static method that allows the cleanup of the Gcs_interface singleton instance according to the binding parameter. More...
 
static void cleanup_thread_communication_resources (enum_available_interfaces binding)
 Static method that cleans up thread-local communication resources in the Gcs_interface singleton instance according to the binding parameter. More...
 
static void cleanup_thread_communication_resources (const std::string &binding)
 Static method that cleans up thread-local communication resources in the Gcs_interface singleton instance according to the binding parameter. More...
 

Static Private Member Functions

static enum_available_interfaces from_string (const std::string &binding)
 

Detailed Description

This class shall be used by an API user as an aggregator utility to retrieve implementations of Gcs_interface.

Member Function Documentation

◆ cleanup() [1/2]

void Gcs_interface_factory::cleanup ( const std::string &  binding)
static

Static method that allows the cleanup of the Gcs_interface singleton instance according to the binding parameter.

Parameters
[in]bindinga string matching the enum available_interfaces value of the binding implementation to retrieve.

◆ cleanup() [2/2]

void Gcs_interface_factory::cleanup ( enum_available_interfaces  binding)
static

Static method that allows the cleanup of the Gcs_interface singleton instance according to the binding parameter.

Parameters
[in]bindingan enum value of the binding implementation to retrieve.

◆ cleanup_thread_communication_resources() [1/2]

void Gcs_interface_factory::cleanup_thread_communication_resources ( const std::string &  binding)
static

Static method that cleans up thread-local communication resources in the Gcs_interface singleton instance according to the binding parameter.

This is required by the XCom backend when SSL is provided by OpenSSL.

Parameters
[in]bindinga string matching the enum available_interfaces value of the binding implementation to retrieve.

◆ cleanup_thread_communication_resources() [2/2]

void Gcs_interface_factory::cleanup_thread_communication_resources ( enum_available_interfaces  binding)
static

Static method that cleans up thread-local communication resources in the Gcs_interface singleton instance according to the binding parameter.

This is required by the XCom backend when SSL is provided by OpenSSL.

Parameters
[in]bindingan enum value of the binding implementation to retrieve.

◆ from_string()

enum_available_interfaces Gcs_interface_factory::from_string ( const std::string &  binding)
staticprivate

◆ get_interface_implementation() [1/2]

Gcs_interface * Gcs_interface_factory::get_interface_implementation ( const std::string &  binding)
static

Static method that allows retrieval of an instantiated implementation of a binding implementation.

Parameters
[in]bindinga string matching the enum available_interfaces value of the binding implementation to retrieve.
Returns
An instantiated object of a binding implementation. NULL in case of error.

◆ get_interface_implementation() [2/2]

Gcs_interface * Gcs_interface_factory::get_interface_implementation ( enum_available_interfaces  binding)
static

Static method that allows retrieval of an instantiated implementation of a binding implementation.

Parameters
[in]bindingan enum value of the binding implementation to retrieve.
Returns
An instantiated object of a binding implementation.NULL in case of error.

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