23#ifndef _PLUGINS_MONGODB_ASPECT_MONGODB_H_
24#define _PLUGINS_MONGODB_ASPECT_MONGODB_H_
26#include <aspect/aspect.h>
31#include <mongocxx/client.hpp>
34class MongoDBConnCreator;
36class MongoDBAspectIniFin;
50 return mongodb_config_name_;
61 std::string mongodb_config_name_;
Fawkes aspect base class.
MongoDBAspect initializer/finalizer.
Thread aspect to access MongoDB.
mongocxx::client * mongodb_client
MongoDB client to use to interact with the database.
MongoDBConnCreator * mongodb_connmgr
Connection manager to retrieve more client connections from if necessary.
virtual ~MongoDBAspect()
Virtual empty destructor.
const std::string & mongodb_config_name() const
Get MongoDB configuration name.
MongoDBAspect()
Constructor.
Interface for a MongoDB connection creator.
Fawkes library namespace.