Fawkes API  Fawkes Development Version
fawkes::MongoDBConnCreator Class Referenceabstract

Interface for a MongoDB connection creator. More...

#include <>>

Inheritance diagram for fawkes::MongoDBConnCreator:

Public Member Functions

virtual mongocxx::client * create_client (const std::string &config_name="")=0
 Create a new MongoDB client. More...
 
virtual void delete_client (mongocxx::client *client)=0
 Delete a client. More...
 

Detailed Description

Interface for a MongoDB connection creator.

Author
Tim Niemueller

Definition at line 37 of file mongodb_conncreator.h.

Member Function Documentation

◆ create_client()

virtual mongocxx::client* fawkes::MongoDBConnCreator::create_client ( const std::string &  config_name = "")
pure virtual

Create a new MongoDB client.

Parameters
config_nameMongoDB client configuration name for the desired connection. May be empty in which case the default configuration is used.
Returns
MongoDB client for the given (or the default) configuration.
Exceptions
thrownif the initialization fails or the configuration for the given name does not exist.

Implemented in MongoDBThread.

Referenced by EventTriggerManager::EventTriggerManager(), MongoLogBlackboardThread::init(), fawkes::MongoDBAspectIniFin::init(), and fawkes::LookupEstimator::LookupEstimator().

◆ delete_client()

virtual void fawkes::MongoDBConnCreator::delete_client ( mongocxx::client *  client)
pure virtual

Delete a client.

Parameters
clientclient to delete

Implemented in MongoDBThread.

Referenced by MongoLogBlackboardThread::finalize(), and fawkes::MongoDBAspectIniFin::finalize().


The documentation for this class was generated from the following file: