diff options
Diffstat (limited to 'mod/runtimeapi/runtime-core')
-rw-r--r-- | mod/runtimeapi/runtime-core/pom.xml | 4 | ||||
-rw-r--r-- | mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/blueprint_creator/BlueprintCreatorOnap.java | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/mod/runtimeapi/runtime-core/pom.xml b/mod/runtimeapi/runtime-core/pom.xml index 0318d2f..26201e8 100644 --- a/mod/runtimeapi/runtime-core/pom.xml +++ b/mod/runtimeapi/runtime-core/pom.xml @@ -3,6 +3,8 @@ ============LICENSE_START======================================================= Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved. ================================================================================ +Modifications Copyright (c) 2020 Nokia +================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -23,7 +25,7 @@ limitations under the License. <parent> <artifactId>runtimeapi</artifactId> <groupId>org.onap.dcaegen2.platform.mod</groupId> - <version>1.0.1</version> + <version>1.0.2</version> </parent> <modelVersion>4.0.0</modelVersion> 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(); } |