mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
40 lines
609 B
C++
40 lines
609 B
C++
#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;
|
|
};
|
|
|
|
}
|