MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
content_set_endpoint.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2024, 2025, Oracle and/or its affiliates.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License, version 2.0,
6 as published by the Free Software Foundation.
7
8 This program is designed to work with certain software (including
9 but not limited to OpenSSL) that is licensed under separate terms,
10 as designated in a particular file or component or in included license
11 documentation. The authors of MySQL hereby grant you an additional
12 permission to link the program and your derivative works with the
13 separately licensed software that they have either included with
14 the program or referenced in the documentation.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24*/
25
26#ifndef ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_ENDPOINT_CONTENT_SET_ENDPOINT_H_
27#define ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_ENDPOINT_CONTENT_SET_ENDPOINT_H_
28
29#include <memory>
30#include <optional>
31#include <string>
32#include <vector>
33
37
38namespace mrs {
39namespace endpoint {
40
41class DbServiceEndpoint;
42
44 public:
47 using ContentSetPtr = std::shared_ptr<ContentSet>;
48 using HandlerFactoryPtr = std::shared_ptr<mrs::interface::HandlerFactory>;
50
51 public:
54 HandlerFactoryPtr factory);
55
56 UniversalId get_id() const override;
57 UniversalId get_parent_id() const override;
58 std::optional<std::string> get_options() const override;
59
60 const ContentSetPtr get() const;
61 void set(const ContentSet &schema, EndpointBasePtr parent);
62
63 void get_content_set_data(std::vector<std::string> *out_scripts,
64 std::vector<std::string> *out_module_classes);
65
66 protected:
67 void update() override;
68
69 private:
71 bool does_this_node_require_authentication() const override;
72 std::string get_my_url_path_part() const override;
73 std::string get_my_url_part() const override;
74
76};
77
78} // namespace endpoint
79
80} // namespace mrs
81
82#endif // ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_ENDPOINT_CONTENT_SET_ENDPOINT_H_
Definition: content_set_endpoint.h:43
const ContentSetPtr get() const
Definition: content_set_endpoint.cc:54
void get_content_set_data(std::vector< std::string > *out_scripts, std::vector< std::string > *out_module_classes)
Definition: content_set_endpoint.cc:93
std::shared_ptr< ContentSet > ContentSetPtr
Definition: content_set_endpoint.h:47
UniversalId get_id() const override
Definition: content_set_endpoint.cc:48
std::string get_my_url_path_part() const override
Definition: content_set_endpoint.cc:82
void set(const ContentSet &schema, EndpointBasePtr parent)
Definition: content_set_endpoint.cc:56
void update() override
Definition: content_set_endpoint.cc:63
mrs::database::entry::ContentSet ContentSet
Definition: content_set_endpoint.h:46
EnabledType get_this_node_enabled_level() const override
Definition: content_set_endpoint.cc:74
std::string get_my_url_part() const override
Definition: content_set_endpoint.cc:85
ContentSetEndpoint(const ContentSet &entry, EndpointConfigurationPtr configuration, HandlerFactoryPtr factory)
Definition: content_set_endpoint.cc:42
UniversalId get_parent_id() const override
Definition: content_set_endpoint.cc:50
bool does_this_node_require_authentication() const override
Definition: content_set_endpoint.cc:78
std::shared_ptr< mrs::interface::HandlerFactory > HandlerFactoryPtr
Definition: content_set_endpoint.h:48
ContentSetPtr entry_
Definition: content_set_endpoint.h:75
ContentSet DataType
Definition: content_set_endpoint.h:49
std::optional< std::string > get_options() const override
Definition: content_set_endpoint.cc:89
Definition: option_endpoint.h:39
OptionEndpoint(UniversalId service_id, EndpointConfigurationPtr configuration, HandlerFactoryPtr factory)
Definition: option_endpoint.cc:37
mrs::database::entry::EnabledType EnabledType
Definition: endpoint_base.h:59
std::shared_ptr< EndpointBase > EndpointBasePtr
Definition: endpoint_base.h:60
mrs::database::entry::UniversalId UniversalId
Definition: endpoint_base.h:61
std::shared_ptr< EndpointConfiguration > EndpointConfigurationPtr
Definition: endpoint_base.h:64
ContentSetEndpoint::ContentSet ContentSet
Definition: content_set_endpoint.cc:37
Definition: authorize_manager.h:48
required string configuration
Definition: replication_asynchronous_connection_failover.proto:49
Definition: completion_hash.h:35