ConnectionManager Class Reference

A manager of multiple mongodb connection. More...

#include <RobotAPI/libraries/armem/server/ltm/legacy/mongodb/ConnectionManager.h>

Classes

struct  MongoDBSettings
 

Public Member Functions

 ConnectionManager ()=delete
 

Static Public Member Functions

static mongocxx::pool & Connect (const MongoDBSettings &settings)
 
static bool ConnectionExists (const MongoDBSettings &settings)
 
static bool ConnectionIsValid (const MongoDBSettings &settings, bool forceNewConnection=false)
 

Detailed Description

A manager of multiple mongodb connection.

Definition at line 28 of file ConnectionManager.h.

Constructor & Destructor Documentation

◆ ConnectionManager()

ConnectionManager ( )
delete

Member Function Documentation

◆ Connect()

mongocxx::pool & Connect ( const MongoDBSettings settings)
static

Definition at line 104 of file ConnectionManager.cpp.

+ Here is the call graph for this function:

◆ ConnectionExists()

bool ConnectionExists ( const MongoDBSettings settings)
static

Definition at line 154 of file ConnectionManager.cpp.

+ Here is the call graph for this function:

◆ ConnectionIsValid()

bool ConnectionIsValid ( const MongoDBSettings settings,
bool  forceNewConnection = false 
)
static

Definition at line 124 of file ConnectionManager.cpp.

+ Here is the call graph for this function:

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