25 #ifndef AOSSL_MONGO_INCLUDE_FACTORY_MONGO_H_ 26 #define AOSSL_MONGO_INCLUDE_FACTORY_MONGO_H_ 29 #include "mongo_interface.h" 30 #include "mongo_admin.h" 48 const char * db,
const char * collection_name) {
49 return new MongoClient(url, db, collection_name);
54 std::string db, std::string collection_name) {
55 return new MongoClient(url, db, collection_name);
61 return new MongoClient(url, db);
66 return new MongoClient(url, db);
71 const char * db,
const char * collection_name,
int pool_size) {
72 return new MongoClient(url, db, collection_name, pool_size);
77 std::string db, std::string collection_name,
int pool_size) {
78 return new MongoClient(url, db, collection_name, pool_size);
83 const char * db,
int pool_size) {
84 return new MongoClient(url, db, pool_size);
89 std::string db,
int pool_size) {
90 return new MongoClient(url, db, pool_size);
94 #endif // AOSSL_MONGO_INCLUDE_FACTORY_MONGO_H_ MongoInterface * get_mongo_interface(const char *url, const char *db)
Get a Mongo Interface instance.
Definition: factory_mongo.h:59
MongoInterface * get_mongo_interface(std::string url, std::string db, std::string collection_name)
Get a Mongo Interface instance.
Definition: factory_mongo.h:53
~MongoComponentFactory()
Delete a Service Component Factory.
Definition: factory_mongo.h:44
MongoInterface * get_mongo_interface(std::string url, std::string db)
Get a Mongo Interface instance.
Definition: factory_mongo.h:65
MongoComponentFactory()
Create a new Service Component Factory.
Definition: factory_mongo.h:41
MongoInterface * get_mongo_interface(const char *url, const char *db, int pool_size)
Get a Mongo Interface instance.
Definition: factory_mongo.h:82
MongoInterface * get_mongo_interface(std::string url, std::string db, std::string collection_name, int pool_size)
Get a Mongo Interface instance.
Definition: factory_mongo.h:76
MongoInterface * get_mongo_interface(std::string url, std::string db, int pool_size)
Get a Mongo Interface instance.
Definition: factory_mongo.h:88
The Mongo Service Component Factory.
Definition: factory_mongo.h:38
MongoInterface * get_mongo_interface(const char *url, const char *db, const char *collection_name, int pool_size)
Get a Mongo Interface instance.
Definition: factory_mongo.h:70
MongoInterface * get_mongo_interface(const char *url, const char *db, const char *collection_name)
Get a Mongo Interface instance.
Definition: factory_mongo.h:47
Definition: mongo_interface.h:73