MongoDB extension - Compatible with Cosmos DB

Plugin ID

The plugin ID for MongoDB is fr.cantor.c4i.MongoDBDelivery

Properties

Environment independent parameters (set in extension configuration or properties file)

Property keyDescriptionMandatoryDefault value
configAssetIdThe ID of the asset containing the YAML mappingsYes
connectionThe name of the connection in the c4i.properties fileYes
prefixCollectionNamesWithContextIdtrue or false to indicate whether or not to prefix the collection names with the context IDsYes
batchSizeThe maximum number of elements to send in a single queryYes
deleteElementsNotMatchingFilterstrue or false to indicate if elements not matching filters should be deleted from the databaseNofalse
emptyDatabaseBeforeImporttrue will reset the tables before inserting data. Only use for full IEPNofalse
cacheConfigThe ID of the asset containing the JCS configurationNo
displayPerfStattrue to display performance statistics (see Performance statistics dedicated page)Nofalse

Environment dependent parameters (set in centralized c4i.properties file)

Property keyDescriptionMandatoryDefault value
hostHost of the MongoDB databaseYes
portPort of the MongoDB databaseYes
dbNameThe name of the databaseYes
enableSsltrue enables TLS/SSL connection. Mandatory to connect to Cosmos DBNofalse
requestTimerTimer in ms between two requests. -1 to ignoreNo-1
usernameThe username to connect to the databaseNo
passwordThe password to connect to the database in standalone mode onlyNo
authenticationDatabaseThe name of the database where the user is definedNo

Configuration Example

extensions.[0].pluginId=fr.cantor.c4i.MongoDBDelivery
extensions.[0].connection=mongodb
extensions.[0].configAssetId=C4I-Configuration
extensions.[0].prefixCollectionNamesWithContextId=true
extensions.[0].batchSize=100
extensions.[0].deleteElementsNotMatchingFilters=false
extensions.[0].emptyDatabaseBeforeImport=false
pluginId=fr.cantor.c4i.MongoDBDelivery
connection=mongodb
configAssetId=/Path/to/C4I-Configuration.yml
prefixCollectionNamesWithContextId=true
batchSize=100
deleteElementsNotMatchingFilters=false
licenseAssetId=/Path/to/C4I/License.cat
emptyDatabaseBeforeImport=false
mongodb.host=localhost
mongodb.port=27017
mongodb.dbName=step
mongodb.username=c4i
mongodb.authenticationDatabase=admin
mongodb.enableSsl=false
mongodb.requestTimer=-1
Last Updated: