mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +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;
|
|
};
|
|
|
|
|
|
}
|