ClickHouse/src/Server/ReplicasStatusHandler.h
2021-06-15 17:33:46 +03:00

22 lines
446 B
C++

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