![]() |
MySQL 26.10.0
Source Code Documentation
|
Owns and manages system variables exposed by the MRS component. More...
#include <mrs_component_system_vars.h>
Classes | |
| struct | ConfiguredValues |
Public Member Functions | |
| SystemVars ()=default | |
| ~SystemVars ()=default | |
| SystemVars (const SystemVars &)=delete | |
| SystemVars & | operator= (const SystemVars &)=delete |
| SystemVars (SystemVars &&)=delete | |
| SystemVars & | operator= (SystemVars &&)=delete |
| int | initialize_all () |
| Initialize the MySQL Rest Service Component system variables. More... | |
| int | register_all () |
| Register the MySQL Rest Service Component system variables with the server and set the current values in sysvars. More... | |
| int | unregister_all () |
| Unregister the MySQL Rest Service Component system variables. More... | |
| int | register_system_var (SysvarBase &sysvar, void *args) const |
| Register one system variable. More... | |
| int | unregister_system_var (SysvarBase &sysvar) const |
| Unregister one system variable. More... | |
| ConfiguredValues | get_configured_values () const |
| void | apply_http_limits () |
Static Private Member Functions | |
| static int | check_http_port (MYSQL_THD, SYS_VAR *, void *new_value, struct st_mysql_value *value) |
| Check for a valid http port value. More... | |
| static int | check_io_worker_threads (MYSQL_THD, SYS_VAR *, void *new_value, struct st_mysql_value *value) |
| static int | check_http_max_connections (MYSQL_THD, SYS_VAR *, void *new_value, struct st_mysql_value *value) |
| static int | check_http_body_size (MYSQL_THD, SYS_VAR *, void *new_value, struct st_mysql_value *value) |
| static int | check_str_var (MYSQL_THD, SYS_VAR *var, void *new_value, struct st_mysql_value *value) |
| static void | update_ulong_var (MYSQL_THD, SYS_VAR *, void *val_ptr, const void *checked) |
| static void | update_ullong_var (MYSQL_THD, SYS_VAR *, void *val_ptr, const void *checked) |
| Update an unsigned long long system variable. More... | |
| static void | update_string_var (MYSQL_THD, SYS_VAR *, void *val_ptr, const void *checked) |
| Update a string system variable. More... | |
| static void | update_http_max_connections (MYSQL_THD, SYS_VAR *, void *val_ptr, const void *checked) |
| static void | update_http_max_request_body_size (MYSQL_THD, SYS_VAR *, void *val_ptr, const void *checked) |
| static void | update_http_max_response_body_size (MYSQL_THD, SYS_VAR *, void *val_ptr, const void *checked) |
Private Attributes | |
| const char * | m_sysvar_prefix {"mysql_rest_service"} |
| std::mutex | m_values_mutex |
| sv_ulonglong | m_http_port_sysvar |
| sv_char | m_ssl_cert_sysvar |
| sv_char | m_ssl_key_sysvar |
| sv_char | m_ssl_cipher_sysvar |
| sv_ulong | m_io_worker_threads_sysvar |
| sv_ulong | m_http_max_connections_sysvar |
| sv_ulonglong | m_http_max_request_body_size_sysvar |
| sv_ulonglong | m_http_max_response_body_size_sysvar |
Owns and manages system variables exposed by the MRS component.
|
default |
|
default |
|
delete |
|
delete |
| void mrs_component::SystemVars::apply_http_limits | ( | ) |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Check for a valid http port value.
|
staticprivate |
|
staticprivate |
| SystemVars::ConfiguredValues mrs_component::SystemVars::get_configured_values | ( | ) | const |
| int mrs_component::SystemVars::initialize_all | ( | ) |
Initialize the MySQL Rest Service Component system variables.
|
delete |
|
delete |
| int mrs_component::SystemVars::register_all | ( | ) |
Register the MySQL Rest Service Component system variables with the server and set the current values in sysvars.
| int mrs_component::SystemVars::register_system_var | ( | SysvarBase & | sysvar, |
| void * | args | ||
| ) | const |
Register one system variable.
The PERSIST_AS_READ_ONLY flag ensures that persisted or otherwise pre-configured system variables are loaded during component initialization
| int mrs_component::SystemVars::unregister_all | ( | ) |
Unregister the MySQL Rest Service Component system variables.
| int mrs_component::SystemVars::unregister_system_var | ( | SysvarBase & | sysvar | ) | const |
Unregister one system variable.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Update a string system variable.
|
staticprivate |
Update an unsigned long long system variable.
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |