#include <get_system_variable.h>
◆ Get_system_variable()
Get_system_variable::Get_system_variable |
( |
| ) |
|
|
default |
◆ ~Get_system_variable()
Get_system_variable::~Get_system_variable |
( |
| ) |
|
|
overridedefault |
◆ get_global_gtid_executed()
int Get_system_variable::get_global_gtid_executed |
( |
std::string & |
gtid_executed | ) |
|
Method to return the server gtid_executed by executing the get_variables component service.
- Parameters
-
[out] | gtid_executed | The string where the result will be appended |
- Returns
- the error value returned
- Return values
-
◆ get_global_gtid_purged()
int Get_system_variable::get_global_gtid_purged |
( |
std::string & |
gtid_purged | ) |
|
Method to return the server gtid_purged by executing the get_variables component service.
- Parameters
-
[out] | gtid_purged | The string where the result will be appended |
- Returns
- the error value returned
- Return values
-
◆ get_global_read_only()
int Get_system_variable::get_global_read_only |
( |
bool & |
value | ) |
|
Method to return the global value of read_only by executing the get_variables component service.
- Parameters
-
[out] | value | The variable where the value will be set |
- Returns
- the error value returned
- Return values
-
◆ get_global_super_read_only()
int Get_system_variable::get_global_super_read_only |
( |
bool & |
value | ) |
|
Method to return the global value of super_read_only by executing the get_variables component service.
- Parameters
-
[out] | value | The variable where the value will be set |
- Returns
- the error value returned
- Return values
-
◆ internal_get_system_variable()
int Get_system_variable::internal_get_system_variable |
( |
std::string |
variable, |
|
|
std::string & |
value, |
|
|
size_t |
value_max_length |
|
) |
| |
|
private |
Method to return the server system variable specified on variable.
- Parameters
-
[in] | variable | The system variable name to be retrieved |
[out] | value | The string where the result will be set |
[in] | value_max_length | The maximum string value length |
- Returns
- the error value returned
- Return values
-
◆ run()
Method that will be run on mysql_thread.
- Parameters
-
[in,out] | parameters | Values used by method to get service variable. |
Implements Mysql_thread_body.
◆ string_to_bool()
bool Get_system_variable::string_to_bool |
( |
const std::string & |
value | ) |
|
|
private |
Method to convert a string into a boolean.
- Parameters
-
[in] | value | The value as string. |
- Returns
- the value as boolean
- Return values
-
true | string value is "ON" |
false | otherwise |
The documentation for this class was generated from the following files: