MySQL 8.0.40
Source Code Documentation
Log_resource_factory Class Reference

This is the Log_resource factory to create wrappers for supported resources. More...

#include <log_resource.h>

Static Public Member Functions

static Log_resourceget_wrapper (Master_info *mi, Json_dom *json)
 Creates a Log_resource wrapper based on a Master_info object. More...
 
static Log_resourceget_wrapper (MYSQL_BIN_LOG *binlog, Json_dom *json)
 Creates a Log_resource wrapper based on a Master_info object. More...
 
static Log_resourceget_wrapper (Gtid_state *gtid_state, Json_dom *json)
 Creates a Log_resource wrapper based on a Gtid_state object. More...
 
static Log_resourceget_wrapper (handlerton *hton, Json_dom *json)
 Creates a Log_resource wrapper based on a handlerton. More...
 

Detailed Description

This is the Log_resource factory to create wrappers for supported resources.

Member Function Documentation

◆ get_wrapper() [1/4]

Log_resource * Log_resource_factory::get_wrapper ( Gtid_state gtid_state,
Json_dom json 
)
static

Creates a Log_resource wrapper based on a Gtid_state object.

Parameters
[in]gtid_statethe pointer to the Gtid_state object resource.
[in]jsonthe pointer to the JSON object to be populated with the resource log information.
Returns
the pointer to the new Log_resource.

◆ get_wrapper() [2/4]

Log_resource * Log_resource_factory::get_wrapper ( handlerton hton,
Json_dom json 
)
static

Creates a Log_resource wrapper based on a handlerton.

Parameters
[in]htonthe pointer to the handlerton resource.
[in]jsonthe pointer to the JSON object to be populated with the resource log information.
Returns
the pointer to the new Log_resource.

◆ get_wrapper() [3/4]

Log_resource * Log_resource_factory::get_wrapper ( Master_info mi,
Json_dom json 
)
static

Creates a Log_resource wrapper based on a Master_info object.

Parameters
[in]mithe pointer to the Master_info object resource.
[in]jsonthe pointer to the JSON object to be populated with the resource log information.
Returns
the pointer to the new Log_resource.

◆ get_wrapper() [4/4]

Log_resource * Log_resource_factory::get_wrapper ( MYSQL_BIN_LOG binlog,
Json_dom json 
)
static

Creates a Log_resource wrapper based on a Master_info object.

Parameters
[in]binlogthe pointer to the MYSQL_BIN_LOG object resource.
[in]jsonthe pointer to the JSON object to be populated with the resource log information.
Returns
the pointer to the new Log_resource.

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