MySQL 26.10.0
Source Code Documentation
mrs_component_embedded_mysql_cache.h
Go to the documentation of this file.
1/* Copyright (c) 2026, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MRS_COMPONENT_EMBEDDED_MYSQL_CACHE_H
25#define MRS_COMPONENT_EMBEDDED_MYSQL_CACHE_H
26
27#include <cstdint>
28#include <memory>
29#include <string>
30
31#include "mrs/configuration.h"
32
33namespace collector {
36} // namespace collector
37
38namespace mrs_component {
39
40// Creates the component-mode MysqlCacheManager implementation. It preserves the
41// shared MRS cache-manager interface but allocates fresh embedded MySQL
42// sessions that use internal security-context execution instead of network
43// password authentication.
44std::unique_ptr<collector::MysqlCacheManager>
46 const std::string &local_address,
47 const std::string &metadata_auth_id,
48 const std::string &data_auth_id);
49
50std::shared_ptr<collector::MysqlFixedPoolManager>
51create_embedded_mysql_user_session_pool(uint32_t passthrough_pool_size,
52 const std::string &local_address,
53 const std::string &auth_id);
54
55} // namespace mrs_component
56
57#endif // MRS_COMPONENT_EMBEDDED_MYSQL_CACHE_H
Definition: mysql_cache_manager.h:82
Definition: mysql_fixed_pool_manager.h:40
Definition: configuration.h:49
Definition: mrs_component_embedded_mysql_cache.h:33
Definition: mrs_component.cc:137
std::unique_ptr< collector::MysqlCacheManager > create_embedded_mysql_cache_manager(const mrs::Configuration &configuration, const std::string &local_address, const std::string &metadata_auth_id, const std::string &data_auth_id)
Definition: mrs_component_embedded_mysql_cache.cc:309
std::shared_ptr< collector::MysqlFixedPoolManager > create_embedded_mysql_user_session_pool(uint32_t passthrough_pool_size, const std::string &local_address, const std::string &auth_id)
Definition: mrs_component_embedded_mysql_cache.cc:319
required string configuration
Definition: replication_asynchronous_connection_failover.proto:49