aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Server/ReplicasStatusHandler.h
blob: 1a5388aa2abfdb7b7c4211277e452887c3332132 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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;
};


}