Seastar
High performance C++ framework for concurrent servers
|
Seastar configuration options.
#include <seastar/core/app-template.hh>
Public Types | |
using | value_list_type = boost::intrusive::list< basic_value, boost::intrusive::base_hook< list_base_hook >, boost::intrusive::constant_time_size< false > > |
using | option_group_list_type = boost::intrusive::list< option_group, boost::intrusive::base_hook< list_base_hook >, boost::intrusive::constant_time_size< false > > |
Public Member Functions | |
operator bool () const | |
Does the option group has any values contained in it? | |
bool | used () const |
const std::string & | name () const |
const value_list_type & | values () const |
value_list_type & | values () |
void | describe (options_descriptor &descriptor) const |
void | mutate (options_mutator &mutator) |
Public Attributes | |
sstring | name = "App" |
sstring | description = "" |
bool | auto_handle_sigint_sigterm = true |
Handle SIGINT/SIGTERM by calling reactor::stop() More... | |
reactor_options | reactor_opts |
Configuration options for the reactor. | |
metrics::options | metrics_opts |
Configuration for the metrics sub-system. | |
smp_options | smp_opts |
Configuration options for the smp aspect of seastar. | |
scollectd::options | scollectd_opts |
Configuration for the scollectd sub-system. | |
log_cli::options | log_opts |
Configuration for the logging sub-system. | |
|
inherited |
Describe the content of this option group to the visitor.
The content is visited in a depth-first manner:
false
the entire content of the group, including all its subgroups and values are skipped and options_descriptor::visit_group_end() is called immediately. Otherwise visiting the content of the group proceeds.false
the value is skipped, otherwise visiting the value proceeds.
|
inherited |
Mutate the content of this option group by the visitor.
The visiting algorithm is identical to that of describe(), with the following differences:
true
if it did so and false
otherwise.bool seastar::app_template::seastar_options::auto_handle_sigint_sigterm = true |
Handle SIGINT/SIGTERM by calling reactor::stop()
When true, Seastar will set up signal handlers for SIGINT/SIGTERM that call reactor::stop(). The reactor will then execute callbacks installed by reactor::at_exit().
When false, Seastar will not set up signal handlers for SIGINT/SIGTERM automatically. The default behavior (terminate the program) will be kept. You can adjust the behavior of SIGINT/SIGTERM by installing signal handlers via reactor::handle_signal().
sstring seastar::app_template::seastar_options::description = "" |
The description of the application.
Will be printed on the top of the –help output. Lines should be hard-wrapped for 80 chars.
sstring seastar::app_template::seastar_options::name = "App" |
The name of the application.
Will be used in the –help output to distinguish command line args registered by the application, as opposed to those registered by seastar and its subsystems.