8#include <userver/components/loggable_component_base.hpp>
9#include <userver/engine/task/task_processor_fwd.hpp>
10#include <userver/server/server.hpp>
11#include <userver/utils/statistics/entry.hpp>
13USERVER_NAMESPACE_BEGIN
87 Server(
const components::ComponentConfig& component_config,
88 const components::ComponentContext& component_context);
92 void OnAllComponentsLoaded()
override;
94 void OnAllComponentsAreStopping()
override;
96 const server::Server& GetServer()
const;
98 server::Server& GetServer();
101 engine::TaskProcessor& task_processor);
103 static yaml_config::Schema GetStaticConfigSchema();
106 void WriteStatistics(
utils::statistics::Writer& writer);
108 std::unique_ptr<server::Server> server_;
109 utils::statistics::Entry server_statistics_holder_;
110 utils::statistics::Entry handler_statistics_holder_;
114inline constexpr bool kHasValidate<Server> =
true;