MongoDB extension - Compatible with Cosmos DB

Plugin ID

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

Properties

Property keyDescriptionMandatoryDefault value
debugtrue to display debug logNofalse
hostHost of the MongoDB databaseYes
portPort of the MongoDB databaseYes
dbNameThe name of the databaseYes
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
configAssetIdThe ID of the asset containing the YAML mappingsYes
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 databaseYes
emptyDatabaseBeforeImporttrue will reset the tables before inserting data. Only use for full IEPYes
enableSsltrue enables TLS/SSL connection. Mandatory to connect to Cosmos DBYes
requestTimerTimer in ms between two requests. -1 to ignoreNo-1
cacheConfigThe ID of the asset containing the JCS configurationNo

Configuration Example

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