22 #ifndef _PLUGINS_MONGODB_MONGODB_CLIENT_CONFIG_H_
23 #define _PLUGINS_MONGODB_MONGODB_CLIENT_CONFIG_H_
25 #include <mongocxx/client.hpp>
26 #include <mongocxx/uri.hpp>
76 unsigned int startup_grace_period_;
77 mongocxx::uri conn_uri_;
78 std::string replicaset_name_;
79 std::string auth_dbname;
80 std::string auth_string_;
mongocxx::client * create_client()
Create MongoDB client for this configuration.
bool is_enabled() const
Check if configuration is enabled.
ConnectionMode
Connection mode enumeration.
@ CONNECTION
connect to single node
@ REPLICA_SET
connect to replica set
MongoDBClientConfig(fawkes::Configuration *config, fawkes::Logger *logger, std::string cfgname, std::string prefix)
Constructor.
void log(fawkes::Logger *logger, const char *component, const char *indent)
Write client configuration information to log.
std::string hostport() const
Get host and port of configuration.
ConnectionMode mode() const
Get client configuration mode.
Interface for configuration handling.
Fawkes library namespace.