#pragma once #include #if USE_NURAFT #include #include #include namespace DB { class KeeperReadinessHandler : public HTTPRequestHandler, WithContext { private: std::shared_ptr keeper_dispatcher; public: explicit KeeperReadinessHandler(std::shared_ptr keeper_dispatcher_) : keeper_dispatcher(keeper_dispatcher_) { } void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response, const ProfileEvents::Event & write_event) override; }; HTTPRequestHandlerFactoryPtr createKeeperHTTPControlMainHandlerFactory( const Poco::Util::AbstractConfiguration & config, std::shared_ptr keeper_dispatcher, const std::string & name); } #endif