38 (
"workers",
i32(),
"Number of worker threads")
39 (
"reactors",
i32(),
"Number of reactor threads")
41 alias(
"timeout",
"Hypertable.Request.Timeout");
47 if (get_bool(
"verbose"))
48 std::cout <<
"CPU cores count="<< num_cores << std::endl;
50 int32_t reactors =
get(
"reactors", num_cores);
60 (
"port",
i16(),
"Listening port")
61 (
"pidfile",
str(),
"File to contain the process id")
68 if (pidfile.length()) {
69 std::ofstream out(pidfile.c_str());
Declarations for configuration properties.
Retrieves system information (hardware, installation directory, etc)
void init_generic_server_options()
Initializes generic server options.
PropertiesPtr properties
This singleton map stores all options.
std::string String
A String is simply a typedef to std::string.
static void initialize(uint16_t reactor_count)
Initializes I/O reactors.
Po::typed_value< uint16_t > * i16(uint16_t *v=0)
Po::typed_value< String > * str(String *v=0)
static int32_t get_processor_count()
The processor count.
void init_comm_options()
Initializes Comm-layer options.
Desc & cmdline_desc(const char *usage)
A macro which definds global functions like get_bool(), get_str(), get_i16() etc. ...
bool has(const String &name)
Check existence of a configuration value.
void init_comm()
This method initializes the Comm-layer.
Po::typed_value< int32_t > * i32(int32_t *v=0)
Compatibility Macros for C/C++.
void init_generic_server()
Initializes generic server by writing the pidfile.
Declarations for ReactorFactory.
static int32_t get_pid()
The pid of the current process.
void alias(const String &cmdline_opt, const String &file_opt, bool overwrite)
Setup command line option alias for config file option.