2018-06-06 20:57:07 +00:00
|
|
|
#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
|
2018-06-15 13:45:19 +00:00
|
|
|
static const char * getPriorityName(int priority);
|
2018-06-06 20:57:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
using SystemLogsQueuePtr = std::shared_ptr<SystemLogsQueue>;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|