![SWC-DB logo](logo.svg) |
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
10 namespace SWC {
namespace FsBroker {
namespace Metric {
46 : Common::Query::Update::Metric::
Reporting(
49 Env::Config::settings()
50 ->get<Config::Property::Value_int32_g>(
51 "swc.FsBroker.metrics.report.interval"),
52 Env::Config::settings()->get_bool(
53 "swc.FsBroker.metrics.report.broker")
55 : client::Clients::DEFAULT
60 void Reporting::configure_fsbroker(
const char*,
const Comm::EndPoints& endpoints) {
62 if(gethostname(hostname,
sizeof(hostname)) == -1)
66 "swcdb",
"fsbroker", hostname, endpoints
69 level->metrics.emplace_back(
74 if(fs->statistics.enabled)
75 level->metrics.emplace_back(
new Item_FS(fs));
76 level->metrics.emplace_back(fds);
Reporting(const SWC::client::Clients::Ptr &a_clients, const Comm::IoContextPtr &a_io, Config::Property::Value_int32_g::Ptr a_cfg_intval, client::Clients::Flag a_executor=client::Clients::DEFAULT)
SWC_CAN_INLINE void set_value(uint8_t *v, uint32_t len, bool owner)
static SWC::Config::Settings::Ptr & settings()
#define SWC_THROW(_code_, _msg_)
virtual Level * configure(const char *group_name, const char *inst_name, const char *host, const Comm::EndPoints &endpoints)
virtual ~Item_Fds() noexcept
SWC_CAN_INLINE void add(Field *field)
SWC_CAN_INLINE void add(const std::string_view &fraction)
The SWC-DB C++ namespace 'SWC'.
constexpr SWC_CAN_INLINE size_type size() const noexcept
void definitions(client::Query::Update::Handlers::Base::Column *colp, const DB::Cell::KeyVec &parent_key) override
static SWC_CAN_INLINE FS::FileSystem::Ptr & fs() noexcept
constexpr SWC_CAN_INLINE void set_time_order_desc(bool desc) noexcept
static const uint24_t FIELD_ID_VOLUME
constexpr SWC_CAN_INLINE size_t fill() const noexcept
void copy(const KeyVec &other)
static const uint24_t FIELD_ID_COUNT
SWC_CAN_INLINE void add(const Fraction &fraction)
virtual size_t add(const DynamicBuffer &cells, const DB::Cell::Key &upto_key, const DB::Cell::Key &from_key, uint32_t skip, bool malformed)=0
SWC_CAN_INLINE void reserve(size_type cap)