mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
22 lines
446 B
C++
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;
|
|
};
|
|
|
|
|
|
}
|