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_;
79 std::string data_path_;
80 std::string log_path_;
82 std::string replica_set_;
83 unsigned int oplog_size_;
86 std::vector<std::string> argv_;
87 std::shared_ptr<fawkes::SubProcess> proc_;
88 std::string command_line_;
MongoDBInstanceConfig(fawkes::Configuration *config, std::string cfgname, std::string prefix)
Constructor.
Thread aspect that allows to obtain the current time from the clock.
void start_mongod()
Start mongod.
virtual void finalize()
Finalize the thread.
Fawkes library namespace.
unsigned int termination_grace_period() const
Get termination grace period.
Thread class encapsulation of pthreads.
virtual void init()
Initialize the thread.
void kill_mongod(bool clear_data)
Stop mongod.
Thread aspect to log output.
std::string command_line() const
Get command line used to execute program.
virtual void loop()
Code to execute in the thread.
bool is_enabled() const
Check if configuration is enabled.
Interface for configuration handling.