Class SimpleMongoDBAccess
java.lang.Object
fr.gouv.vitam.common.database.server.mongodb.MongoDbAccess
fr.gouv.vitam.common.database.server.mongodb.SimpleMongoDBAccess
- All Implemented Interfaces:
DatabaseConnection
simple implementation on MongoDbAccess
-
Constructor Summary
ConstructorDescriptionSimpleMongoDBAccess
(com.mongodb.client.MongoClient mongoClient, String dbname) -
Method Summary
Methods inherited from class fr.gouv.vitam.common.database.server.mongodb.MongoDbAccess
checkConnection, close, createMongoClient, createMongoClient, getInfo, getMongoAdmin, getMongoClient, getMongoClientSettingsBuilder, getMongoClientSettingsBuilder, getMongoDatabase, setDatabase, setMongoAdmin, setMongoClient, setMongoDatabase
-
Constructor Details
-
SimpleMongoDBAccess
- Parameters:
mongoClient
- MongoClientdbname
- MongoDB database name- Throws:
IllegalArgumentException
- if mongoClient or dbname is null
-