aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Server/IServer.h
blob: c55b045d2a5e0aeaa39c64256023a8cde3e37f68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once

#include <Interpreters/Context_fwd.h>

namespace Poco
{

namespace Util
{
class LayeredConfiguration;
}

class Logger;

}


namespace DB
{

class IServer
{
public:
    /// Returns the application's configuration.
    virtual Poco::Util::LayeredConfiguration & config() const = 0;

    /// Returns the application's logger.
    virtual Poco::Logger & logger() const = 0;

    /// Returns global application's context.
    virtual ContextMutablePtr context() const = 0;

    /// Returns true if shutdown signaled.
    virtual bool isCancelled() const = 0;

    virtual ~IServer() = default;
};

}