mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
31 lines
575 B
C++
31 lines
575 B
C++
#pragma once
|
|
|
|
#include <Poco/Logger.h>
|
|
#include <Poco/Util/LayeredConfiguration.h>
|
|
|
|
#include <Interpreters/Context.h>
|
|
|
|
|
|
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 Context & context() const = 0;
|
|
|
|
/// Returns true if shutdown signaled.
|
|
virtual bool isCancelled() const = 0;
|
|
|
|
virtual ~IServer() {}
|
|
};
|
|
|
|
}
|