userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
manager_controller_component.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <
userver/components/component_fwd.hpp
>
7
#include <
userver/components/raw_component_base.hpp
>
8
#include <
userver/dynamic_config/snapshot.hpp
>
9
#include <
userver/engine/task/task_processor_fwd.hpp
>
10
#include <
userver/utils/statistics/fwd.hpp
>
11
12
USERVER_NAMESPACE_BEGIN
13
14
namespace
components
{
15
16
namespace
impl {
17
class
Manager;
18
}
// namespace impl
19
20
// clang-format off
21
79
80
// clang-format on
81
class
ManagerControllerComponent final :
public
RawComponentBase {
82
public
:
85
static
constexpr
std::string_view
kName
=
"manager-controller"
;
86
87
ManagerControllerComponent(
const
components::ComponentConfig
& config,
const
components::ComponentContext
& context);
88
89
private
:
90
void
WriteStatistics(
utils::statistics::Writer
& writer);
91
92
void
OnConfigUpdate(
const
dynamic_config::Snapshot
& cfg);
93
94
const
components::impl::Manager& components_manager_;
95
};
96
97
template
<>
98
inline
constexpr
auto
kConfigFileMode<ManagerControllerComponent>
=
ConfigFileMode::kNotRequired
;
99
100
}
// namespace components
101
102
USERVER_NAMESPACE_END
userver
components
manager_controller_component.hpp
Generated on
for userver by
Doxygen
1.17.0