|
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.
6 #ifndef swcdb_app_fsbroker_Settings_h
7 #define swcdb_app_fsbroker_Settings_h
15 namespace SWC {
namespace Config {
24 settings->file_desc.add_options()
25 (
"swc.fs.broker.host",
str(),
26 "FsBroker host (default resolve by hostname)")
27 (
"swc.fs.broker.port",
i16(14000),
30 (
"swc.FsBroker.cfg",
str(),
31 "Specific cfg-file for FsBroker")
32 (
"swc.FsBroker.cfg.dyn",
strs(),
33 "Specific dyn. cfg-file for FsBroker")
34 (
"swc.cfg.dyn.period",
g_i32(60000),
35 "Dynamic cfg-file check interval in ms, zero without")
37 (
"swc.FsBroker.concurrency.relative",
boo(
true),
38 "Determined ratio by HW-Concurrency")
39 (
"swc.FsBroker.reactors",
i32(4),
40 "Number of Communication Reactors or HW-Concurrency a Reactor")
41 (
"swc.FsBroker.workers",
i32(16),
42 "Number of Workers a Reactor")
43 (
"swc.FsBroker.handlers",
i32(64),
44 "Number or HW-Concurrency base of App Handlers")
46 (
"swc.FsBroker.metrics.enabled",
boo(
true),
47 "Enable or Disable Metrics Monitoring")
48 (
"swc.FsBroker.metrics.report.broker",
boo(
true),
49 "Report Metrics via Broker Client")
50 (
"swc.FsBroker.metrics.report.interval",
g_i32(300),
51 "Metrics Reporting Interval in Seconds")
53 (
"swc.FsBroker.comm.encoder",
59 "The encoding to use in communication, options PLAIN/ZSTD/SNAPPY/ZLIB")
61 settings->alias(
"host",
"swc.fs.broker.host");
66 settings->
get_str(
"swc.fs.broker.cfg",
""),
nullptr
69 settings->
get_str(
"swc.FsBroker.cfg",
""),
"swc.FsBroker.cfg.dyn"
76 #endif // swcdb_app_fsbroker_Settings_h
Property::Value_int32::Ptr i32(const int32_t &v)
Property::Value_int32_g::Ptr g_i32(const int32_t &v)
Property::Value_enum_g::Ptr g_enum(const int32_t &v, Property::Value_enum_g::OnChg_t &&cb, Property::Value_enum_g::FromString_t &&from_string, Property::Value_enum_g::Repr_t &&repr)
void init_app_options(Settings *settings)
SWC_CAN_INLINE int from_string_encoding(const std::string &typ) noexcept
Property::Value_bool::Ptr boo(const bool &v)
void init_fs_options(Settings *settings)
void init_client_options(Settings *settings)
void parse_file(const std::string &fname, const char *onchg)
#define SWC_DEFAULT_COMM_ENCODER
Property::Value_uint16::Ptr i16(const uint16_t &v)
void init_comm_options(Settings *settings)
The SWC-DB C++ namespace 'SWC'.
Property::Value_strings::Ptr strs(Strings &&v)
Property::Value_string::Ptr str(std::string &&v)
std::string get_str(const char *name) const
void init_post_cmd_args(Settings *settings)
SWC_CAN_INLINE std::string repr_encoding(int typ)