MySQL 8.0.39
Source Code Documentation
|
This is the base class that the logic of collecting a MySQL server instance resources log will call. More...
#include <log_resource.h>
Public Member Functions | |
Log_resource (Json_dom *json_arg) | |
Log_resource constructor. More... | |
virtual | ~Log_resource () |
Destructor. More... | |
Json_dom * | get_json () |
Return the pointer to the JSON object that should be used to fill the resource log information. More... | |
virtual void | lock ()=0 |
Lock the resource avoiding updates. More... | |
virtual void | unlock ()=0 |
Unlock the resource allowing updates. More... | |
virtual bool | collect_info ()=0 |
Collect resource log information. More... | |
Static Public Member Functions | |
static int | dummy_function_to_ensure_we_are_linked_into_the_server () |
There must be one function of this kind in order for the symbols in the server's dynamic library to be visible to plugins. More... | |
Private Attributes | |
Json_dom * | json = nullptr |
This is the base class that the logic of collecting a MySQL server instance resources log will call.
It basically contains lock, unlock and collect functions that shall be overridden by more specialized classes to handle the specific cases of resources participating in the process.
|
inline |
Log_resource constructor.
[in] | json_arg | the pointer to the JSON object to be populated with the resource log information. |
|
inlinevirtual |
Destructor.
This function will point the JSON object to nullptr.
|
pure virtual |
Collect resource log information.
Implemented in Log_resource_mi_wrapper, Log_resource_binlog_wrapper, Log_resource_gtid_state_wrapper, and Log_resource_hton_wrapper.
|
static |
There must be one function of this kind in order for the symbols in the server's dynamic library to be visible to plugins.
|
inline |
Return the pointer to the JSON object that should be used to fill the resource log information.
|
pure virtual |
Lock the resource avoiding updates.
Implemented in Log_resource_mi_wrapper, Log_resource_binlog_wrapper, Log_resource_gtid_state_wrapper, and Log_resource_hton_wrapper.
|
pure virtual |
Unlock the resource allowing updates.
Implemented in Log_resource_mi_wrapper, Log_resource_binlog_wrapper, Log_resource_gtid_state_wrapper, and Log_resource_hton_wrapper.