22 #ifndef _PLUGINS_MONGODB_MONGODB_INSTANCE_CONFIG_H_
23 #define _PLUGINS_MONGODB_MONGODB_INSTANCE_CONFIG_H_
25 #include <aspect/clock.h>
26 #include <aspect/logging.h>
27 #include <core/threading/thread.h>
73 std::string config_name_;
74 unsigned int startup_grace_period_;
75 unsigned int termination_grace_period_;
77 bool clear_data_on_termination_;
78 bool use_tmp_directory_;
81 std::string data_path_;
82 std::string log_path_;
84 std::string replica_set_;
85 unsigned int oplog_size_;
88 std::vector<std::string> argv_;
89 std::shared_ptr<fawkes::SubProcess> proc_;
90 std::string command_line_;
bool is_enabled() const
Check if configuration is enabled.
unsigned int termination_grace_period() const
Get termination grace period.
virtual void loop()
Code to execute in the thread.
virtual void finalize()
Finalize the thread.
void start_mongod()
Start mongod.
void kill_mongod(bool clear_data)
Stop mongod.
MongoDBInstanceConfig(fawkes::Configuration *config, std::string cfgname, std::string prefix)
Constructor.
virtual void init()
Initialize the thread.
std::string command_line() const
Get command line used to execute program.
Thread aspect that allows to obtain the current time from the clock.
Interface for configuration handling.
Thread aspect to log output.
Thread class encapsulation of pthreads.
Fawkes library namespace.