5 #include <SimoxUtility/json.h>
19 namespace bsoncxxbuilder = bsoncxx::builder::stream;
20 namespace bsoncxxdoc = bsoncxx::document;
28 <<
"The connection to mongocxx for ltm '" << cache.name() <<
"' is not valid. Settings are: " <<
dbsettings.
toString()
29 <<
"\nTo start it, run e.g.: \n"
30 <<
"armarx memory start"
36 auto client = pool.acquire();
46 auto client = checkConnection();
52 std::lock_guard l(ltm_mutex);
53 auto databases = client->list_databases();
55 ss <<
"Found Memory-Collection in MongoDB for '" + cache.name() +
"': \n";
56 for (
const auto& doc : databases)
58 auto el = doc[
"name"];
59 ss <<
"\t - " << el.get_utf8().value <<
"\n";
76 auto client = checkConnection();
82 std::lock_guard l(ltm_mutex);
94 auto client = checkConnection();
100 std::lock_guard l(ltm_mutex);
108 moveCacheToLUTAndClearCache();