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