1#pragma once
2
3#include "IServer.h"
4
5#include <Poco/Net/HTTPRequestHandler.h>
6
7
8namespace DB
9{
10
11class Context;
12
13/// Replies "Ok.\n" if all replicas on this server don't lag too much. Otherwise output lag information.
14class ReplicasStatusHandler : public Poco::Net::HTTPRequestHandler
15{
16private:
17 Context & context;
18
19public:
20 explicit ReplicasStatusHandler(IServer & server);
21
22 void handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response) override;
23};
24
25
26}
27