mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
27 lines
503 B
C++
27 lines
503 B
C++
#pragma once
|
|
|
|
#include "IServer.h"
|
|
|
|
#include <Poco/Net/HTTPRequestHandler.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
/// Replies "Ok.\n" if all replicas on this server don't lag too much. Otherwise output lag information.
|
|
class ReplicasStatusHandler : public Poco::Net::HTTPRequestHandler
|
|
{
|
|
private:
|
|
Context & context;
|
|
|
|
public:
|
|
explicit ReplicasStatusHandler(IServer & server);
|
|
|
|
void handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response) override;
|
|
};
|
|
|
|
|
|
}
|