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
93 Server(
const components::ComponentConfig& component_config,
94 const components::ComponentContext& component_context);
98 void OnAllComponentsLoaded()
override;
100 void OnAllComponentsAreStopping()
override;
102 const server::Server& GetServer()
const;
104 server::Server& GetServer();
107 engine::TaskProcessor& task_processor);
109 static yaml_config::Schema GetStaticConfigSchema();
112 void WriteStatistics(utils::statistics::Writer& writer);
114 std::unique_ptr<server::Server> server_;
115 utils::statistics::Entry server_statistics_holder_;
116 utils::statistics::Entry handler_statistics_holder_;
120inline constexpr bool kHasValidate<Server> =
true;