mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-30 21:50:49 +00:00
25 lines
573 B
C++
25 lines
573 B
C++
#pragma once
|
||
|
||
#include <Poco/Net/HTTPRequestHandler.h>
|
||
|
||
|
||
namespace DB
|
||
{
|
||
|
||
class Context;
|
||
|
||
/// Отвечает "Ok.\n", если все реплики на этом сервере не слишком сильно отстают. Иначе выводит информацию об отставании.
|
||
class ReplicasStatusHandler : public Poco::Net::HTTPRequestHandler
|
||
{
|
||
private:
|
||
Context & context;
|
||
|
||
public:
|
||
ReplicasStatusHandler(Context & context_);
|
||
|
||
void handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response) override;
|
||
};
|
||
|
||
|
||
}
|