MySQL 9.1.0
Source Code Documentation
Udf_service_impl Class Referenceabstract

#include <udf_service_impl.h>

Inheritance diagram for Udf_service_impl:
[legend]

Public Member Functions

 Udf_service_impl ()=default
 
virtual ~Udf_service_impl ()=default
 
virtual bool init ()=0
 Initialize variables, acquires the mysql_service_mysql_udf_metadata from the registry service and register the Asynchronous Connection Failover's UDFs. More...
 
bool deinit ()
 Release the mysql_service_mysql_udf_metadata service and unregisters the Asynchronous Connection Failover's UDFs. More...
 
void set_registry (const mysql_service_registry_t *r)
 Save UDF registry service. More...
 
bool register_udf (Udf_data &e)
 Registers the Asynchronous Connection Failover's UDFs. More...
 
bool unregister_udf (const std::string udf_name)
 Unregisters the Asynchronous Connection Failover's UDFs. More...
 

Private Attributes

const mysql_service_registry_tm_registry {nullptr}
 
std::vector< std::string > m_udfs_registered
 

Constructor & Destructor Documentation

◆ Udf_service_impl()

Udf_service_impl::Udf_service_impl ( )
default

◆ ~Udf_service_impl()

virtual Udf_service_impl::~Udf_service_impl ( )
virtualdefault

Member Function Documentation

◆ deinit()

bool Udf_service_impl::deinit ( void  )

Release the mysql_service_mysql_udf_metadata service and unregisters the Asynchronous Connection Failover's UDFs.

Return values
trueif there was an error
falseif all UDFs were unregistered

◆ init()

virtual bool Udf_service_impl::init ( )
pure virtual

Initialize variables, acquires the mysql_service_mysql_udf_metadata from the registry service and register the Asynchronous Connection Failover's UDFs.

If there is an error registering any UDF, all installed UDFs are unregistered.

Return values
trueif there was an error
falseif all UDFs were registered

Implemented in Rpl_async_conn_failover_add_managed, Rpl_async_conn_failover_add_source, Rpl_async_conn_failover_delete_managed, Rpl_async_conn_failover_delete_source, and Rpl_async_conn_failover_reset.

◆ register_udf()

bool Udf_service_impl::register_udf ( Udf_data e)

Registers the Asynchronous Connection Failover's UDFs.

If there is an error registering any UDF, all installed UDFs are unregistered.

Return values
trueif there was an error
falseif all UDFs were registered

◆ set_registry()

void Udf_service_impl::set_registry ( const mysql_service_registry_t r)
inline

Save UDF registry service.

param[in] r UDF registry service.

◆ unregister_udf()

bool Udf_service_impl::unregister_udf ( const std::string  udf_name)

Unregisters the Asynchronous Connection Failover's UDFs.

Return values
trueif there was an error
falseif all UDFs were unregistered

Member Data Documentation

◆ m_registry

const mysql_service_registry_t* Udf_service_impl::m_registry {nullptr}
private

◆ m_udfs_registered

std::vector<std::string> Udf_service_impl::m_udfs_registered
private

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