Skip to content

Commit

Permalink
add environment variable to disable suffix collection
Browse files Browse the repository at this point in the history
Signed-off-by: Cai Yufei (INST/ECS1) <yufei.cai@bosch-si.com>
  • Loading branch information
yufei-cai committed Nov 12, 2018
1 parent 0ea3cf5 commit 4575364
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/policies/starter/src/main/resources/policies.conf
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ akka.contrib.persistence.mongodb.mongo.suffix-builder {
separator = "@"
separator = ${?MONGO_COLLECTION_NAME_SUFFIX_SEPARATOR}
class = "org.eclipse.ditto.services.utils.persistence.mongo.suffixes.NamespaceSuffixCollectionNames"
class = "org.eclipse.ditto.services.utils.persistence.mongo.suffixes.NamespaceSuffixCollectionNames"${?NO_MONGO_COLLECTION_SUFFIX_IF_VALUE_IS_EXACTLY_Disabled}
class = ${?MONGO_COLLECTION_NAME_SUFFIX_CLASS}
supported-prefixes = [ "policy" ]
}
1 change: 1 addition & 0 deletions services/things/starter/src/main/resources/things.conf
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ akka.contrib.persistence.mongodb.mongo.suffix-builder {
separator = "@"
separator = ${?MONGO_COLLECTION_NAME_SUFFIX_SEPARATOR}
class = "org.eclipse.ditto.services.utils.persistence.mongo.suffixes.NamespaceSuffixCollectionNames"
class = "org.eclipse.ditto.services.utils.persistence.mongo.suffixes.NamespaceSuffixCollectionNames"${?NO_MONGO_COLLECTION_SUFFIX_IF_VALUE_IS_EXACTLY_Disabled}
class = ${?MONGO_COLLECTION_NAME_SUFFIX_CLASS}
supported-prefixes = [ "thing" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2017-2018 Bosch Software Innovations GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/index.php
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.eclipse.ditto.services.utils.persistence.mongo.suffixes;

/**
* Class that does nothing for configuring Akka persistence MongoDB plugin suffix builder to do nothing.
*/
@SuppressWarnings("unused")
public final class NamespaceSuffixCollectionNamesDisabled {
// empty on purpose
}

0 comments on commit 4575364

Please sign in to comment.