ClickHouse/dbms/src/Server/ReplicasStatusHandler.h
2017-09-08 00:04:48 +03:00

25 lines
483 B
C++

#pragma once
#include <Poco/Net/HTTPRequestHandler.h>
namespace DB
{
class Context;
/// Replies "Ok.\n" if all replicas on this server don't lag too much. Otherwise output lag information.
class ReplicasStatusHandler : public Poco::Net::HTTPRequestHandler
{
private:
Context & context;
public:
explicit ReplicasStatusHandler(Context & context_);
void handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response) override;
};
}