mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
30 lines
584 B
C++
30 lines
584 B
C++
|
#pragma once
|
||
|
#include <Common/ConcurrentBoundedQueue.h>
|
||
|
#include <Core/Block.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
class SystemLogsQueue : public ConcurrentBoundedQueue<MutableColumns>
|
||
|
{
|
||
|
public:
|
||
|
/// You should not push logs in the queue if their priority greater max_priority
|
||
|
int max_priority;
|
||
|
|
||
|
SystemLogsQueue();
|
||
|
|
||
|
static Block getSampleBlock();
|
||
|
static MutableColumns getSampleColumns();
|
||
|
|
||
|
/// Converts priority from Poco::Message::Priority to a string
|
||
|
static const char * getProrityName(int priority);
|
||
|
};
|
||
|
|
||
|
using SystemLogsQueuePtr = std::shared_ptr<SystemLogsQueue>;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|