26#ifndef ROUTER_SRC_REST_MRS_SRC_MRS_OBJECT_MANAGER_H_
27#define ROUTER_SRC_REST_MRS_SRC_MRS_OBJECT_MANAGER_H_
83 template <IdType p_type>
87 :
type{p_type},
id{p_id} {}
93 const auto cmp_res = type <=> rhs.type;
94 if (cmp_res != 0)
return cmp_res;
109 mrs::interface::AuthorizeManager *auth_manager,
120 void update(
const std::vector<DbSchema> &schemas)
override;
121 void update(
const std::vector<DbObject> &objs)
override;
122 void update(
const std::vector<UrlHost> &hosts)
override;
123 void update(
const std::vector<ContentSet> &
set)
override;
124 void update(
const std::vector<ContentFile> &files)
override;
126 void clear()
override;
133 std::map<EndpointId, std::weak_ptr<EndpointBase>>
endpoints_;
Definition: mysql_cache_manager.h:87
Definition: endpoint_configuration.h:35
Definition: endpoint_manager.h:68
IdType type
Definition: endpoint_manager.h:101
EndpointId(const UniversalId &p_id)
Definition: endpoint_manager.h:84
UniversalId id
Definition: endpoint_manager.h:102
IdType
Definition: endpoint_manager.h:70
@ IdContentFile
Definition: endpoint_manager.h:76
@ IdService
Definition: endpoint_manager.h:73
@ IdUrlHost
Definition: endpoint_manager.h:72
@ IdObject
Definition: endpoint_manager.h:77
@ IdSchema
Definition: endpoint_manager.h:74
@ IdNone
Definition: endpoint_manager.h:71
@ IdContentSet
Definition: endpoint_manager.h:75
EndpointId()
Definition: endpoint_manager.h:81
EndpointId(const IdType p_type, const UniversalId &p_id)
Definition: endpoint_manager.h:86
Definition: endpoint_manager.h:55
mrs::database::MysqlTaskMonitor MysqlTaskMonitor
Definition: endpoint_manager.h:66
std::map< UniversalId, EndpointBasePtr > hold_host_endpoints_
Definition: endpoint_manager.h:130
void update(const std::vector< DbService > &services) override
Definition: endpoint_manager.cc:276
database::entry::EntryType EntryType
Definition: endpoint_manager.h:58
mrs::GtidManager * gtid_manager_
Definition: endpoint_manager.h:138
void clear() override
Definition: endpoint_manager.cc:321
void configure(const std::optional< std::string > &options) override
Definition: endpoint_manager.cc:97
std::map< EndpointId, std::weak_ptr< EndpointBase > > endpoints_
Definition: endpoint_manager.h:133
mrs::database::SlowQueryMonitor SlowQueryMonitor
Definition: endpoint_manager.h:65
std::shared_ptr< EndpointFactory > endpoint_factory_
Definition: endpoint_manager.h:140
std::shared_ptr< EndpointFactory > EndpointFactoryPtr
Definition: endpoint_manager.h:63
std::shared_ptr< EndpointBase > EndpointBasePtr
Definition: endpoint_manager.h:61
std::vector< std::shared_ptr< interface::RestHandler > > custom_paths_
Definition: endpoint_manager.h:139
database::entry::UniversalId UniversalId
Definition: endpoint_manager.h:59
collector::MysqlCacheManager * cache_
Definition: endpoint_manager.h:136
database::entry::EntryKey EntryKey
Definition: endpoint_manager.h:57
mrs::interface::AuthorizeManager * auth_manager_
Definition: endpoint_manager.h:137
Definition: gtid_manager.h:50
Definition: response_cache.h:64
Definition: mysql_task_monitor.h:41
Definition: slow_query_monitor.h:47
Definition: endpoint_factory.h:42
Definition: authorize_manager.h:58
Definition: endpoint_base.h:57
Definition: endpoint_manager.h:42
Header for compiler-dependent features.
#define MY_COMPILER_GCC_DIAGNOSTIC_IGNORE(X)
Definition: my_compiler.h:242
#define MY_COMPILER_DIAGNOSTIC_PUSH()
save the compiler's diagnostic (enabled warnings, errors, ...) state
Definition: my_compiler.h:277
#define MY_COMPILER_DIAGNOSTIC_POP()
restore the compiler's diagnostic (enabled warnings, errors, ...) state
Definition: my_compiler.h:278
Definition: cache_manager.h:33
EntryType
Definition: entry.h:36
collector::MysqlCacheManager MysqlCacheManager
Definition: handler_db_object_table.cc:266
mrs::interface::EndpointBase EndpointBase
Definition: handler_factory.cc:61
Definition: authorize_manager.h:48
mrs::ResponseCache ResponseCache
Definition: endpoint_manager.cc:73
EndpointManager::EndpointFactory EndpointFactory
Definition: endpoint_manager.cc:72
mrs::database::entry::UniversalId UniversalId
Definition: universal_id.h:33
Definition: options.cc:57
Definition: services.cc:40
Definition: gcs_xcom_synode.h:64
std::set< Key, Compare, ut::allocator< Key > > set
Specialization of set which uses ut_allocator.
Definition: ut0new.h:2884
MY_COMPILER_CLANG_DIAGNOSTIC_IGNORE("-Winconsistent-missing-destructor-override") static Scope_guard static_guard([]()
Definition: protobuf_plugin.cc:33
required string configuration
Definition: replication_asynchronous_connection_failover.proto:49