diff options
author | Andrew Gauld <agauld@att.com> | 2020-07-17 15:46:41 +0000 |
---|---|---|
committer | Andrew Gauld <agauld@att.com> | 2020-07-17 20:04:13 +0000 |
commit | a1a37bde3365ebf0aaa543b2f10ebdb13bd4af40 (patch) | |
tree | 1bda1fb21c14ca4540e45c445da823c6cfdb6373 /mod/runtimeapi/runtime-core | |
parent | e996e07eea9189ffd89418047eb26293ef33e419 (diff) |
Add onap.useDmaapPlugin config parameter
Change-Id: I8c86eb3f1c76c608fe5ce66bc4e0e1f6d8d64abc
Issue-ID: DCAEGEN2-1996
Signed-off-by: Andrew Gauld <agauld@att.com>
Diffstat (limited to 'mod/runtimeapi/runtime-core')
-rw-r--r-- | mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/blueprint_creator/BlueprintCreatorOnap.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/blueprint_creator/BlueprintCreatorOnap.java b/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/blueprint_creator/BlueprintCreatorOnap.java index 7e11b10..c45173d 100644 --- a/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/blueprint_creator/BlueprintCreatorOnap.java +++ b/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/blueprint_creator/BlueprintCreatorOnap.java @@ -31,6 +31,7 @@ public class BlueprintCreatorOnap implements BlueprintCreator{ private String topicUrl; private String importFilePath; + private boolean useDmaapPlugin; public void setTopicUrl(String topicUrl) { this.topicUrl = topicUrl; @@ -40,11 +41,15 @@ public class BlueprintCreatorOnap implements BlueprintCreator{ this.importFilePath = importFilePath; } + public void setUseDmaapPlugin(boolean useDmaapPlugin) { + this.useDmaapPlugin = useDmaapPlugin; + } + @Override public String createBlueprint(String componentSpecString) { ComponentSpec componentSpec = new ComponentSpec(); componentSpec.createComponentSpecFromString(componentSpecString); - Blueprint blueprint = new Blueprint().createBlueprint(componentSpec,"",'o',importFilePath,""); + Blueprint blueprint = new Blueprint().createBlueprint(componentSpec,"",useDmaapPlugin?'d':'o',importFilePath,""); return blueprint.blueprintToString(); } |