2016-01-17 13:34:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-02-19 12:51:26 +00:00
|
|
|
#include <Server/HTTP/HTTPRequestHandler.h>
|
2016-01-17 13:34:36 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class Context;
|
2021-02-19 12:51:26 +00:00
|
|
|
class IServer;
|
2016-01-17 13:34:36 +00:00
|
|
|
|
2017-03-09 00:56:38 +00:00
|
|
|
/// Replies "Ok.\n" if all replicas on this server don't lag too much. Otherwise output lag information.
|
2021-06-15 14:33:46 +00:00
|
|
|
class ReplicasStatusHandler : public HTTPRequestHandler, WithContext
|
2016-01-17 13:34:36 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-04-04 08:57:16 +00:00
|
|
|
explicit ReplicasStatusHandler(IServer & server_);
|
2016-01-17 13:34:36 +00:00
|
|
|
|
2024-01-03 16:47:15 +00:00
|
|
|
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response, const ProfileEvents::Event & write_event) override;
|
2016-01-17 13:34:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|