31 (
"thrift-broker",
str()->default_value(
"localhost:15867"),
32 "Thrift client endpoint in <host:port> format")
33 (
"thrift-timeout",
i32(),
34 "Timeout in milli-seconds for thrift client connections")
36 alias(
"thrift-timeout",
"ThriftBroker.Timeout");
38 alias(
"thrift-host",
"ThriftBroker.Host");
39 alias(
"thrift-port",
"ThriftBroker.Port");
54 (
"port",
i16()->default_value(15867),
"Listening port")
55 (
"pidfile",
str(),
"File to contain the process id")
56 (
"log-api",
boo()->default_value(
false),
"Enable or disable API logging")
57 (
"workers",
i32()->default_value(50),
"Worker threads")
59 alias(
"port",
"ThriftBroker.Port");
60 alias(
"log-api",
"ThriftBroker.API.Logging");
61 alias(
"workers",
"ThriftBroker.Workers");
63 alias(
"thrift-timeout",
"ThriftBroker.Timeout");
73 #if !defined(HT_DISABLE_LOG_ALL) && !defined(HT_DISABLE_LOG_ERROR)
PropertiesPtr properties
This singleton map stores all options.
static Endpoint parse_endpoint(const char *endpoint, int defport=0)
Parse an endpoint string in (host:port) format.
Po::typed_value< uint16_t > * i16(uint16_t *v=0)
Po::typed_value< String > * str(String *v=0)
Desc & cmdline_desc(const char *usage)
A macro which definds global functions like get_bool(), get_str(), get_i16() etc. ...
Po::typed_value< int32_t > * i32(int32_t *v=0)
Compatibility Macros for C/C++.
Po::typed_value< bool > * boo(bool *v=0)
void init_thrift_client()
bool defaulted(const String &name)
Check if a configuration value is defaulted.
void log(int priority, const char *format,...)
Prints a message with variable arguments.
void init_thrift_client_options()
void init_generic_server()
Initializes generic server by writing the pidfile.
void init_thrift_broker_options()
void redirect_thrift_output()
LogWriter * get()
Accessor for the LogWriter singleton instance.
static void thrift_output_handler(const char *message)
Internet address wrapper classes and utility functions.
void init_thrift_broker()
void alias(const String &cmdline_opt, const String &file_opt, bool overwrite)
Setup command line option alias for config file option.
High-level entry point to a service; wraps a host:port pair.