aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/reception-plugins/src/main
diff options
context:
space:
mode:
authorSirisha_Manchikanti <sirisha.manchikanti@est.tech>2022-02-28 17:10:36 +0000
committerSirisha_Manchikanti <sirisha.manchikanti@est.tech>2022-03-02 12:12:49 +0000
commit7ec767641505f52cd8ecf8b9a76fa35afe32635e (patch)
tree90dde20bbe7d13b2ee253a7b21ea1cb18f94194e /plugins/reception-plugins/src/main
parentee04ffd34d67563f1b33a4fbb1eb17e948725d0f (diff)
Rename ControlLoop to AutomationCompsition
Issue-ID: POLICY-3938 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I63188fa9bc5d634d3aeb7e2d7051c4d67b5a202c
Diffstat (limited to 'plugins/reception-plugins/src/main')
-rw-r--r--plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/AutomationCompositionDecoderFileInCsar.java (renamed from plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/ControlLoopDecoderFileInCsar.java)24
-rw-r--r--plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/AutomationCompositionDecoderFileInCsarParameterGroup.java (renamed from plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/ControlLoopDecoderFileInCsarParameterGroup.java)10
2 files changed, 17 insertions, 17 deletions
diff --git a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/ControlLoopDecoderFileInCsar.java b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/AutomationCompositionDecoderFileInCsar.java
index 96db632c..7bfcb0f9 100644
--- a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/ControlLoopDecoderFileInCsar.java
+++ b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/AutomationCompositionDecoderFileInCsar.java
@@ -38,13 +38,13 @@ import org.onap.policy.models.tosca.authorative.concepts.ToscaEntity;
import org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplate;
/**
- * This class extracts controlloop information from a CSAR file.
+ * This class extracts acm information from a CSAR file.
*
* @author Sirisha Manchikanti (sirisha.manchikanti@est.tech)
*/
-public class ControlLoopDecoderFileInCsar implements PolicyDecoder<Csar, ToscaEntity> {
+public class AutomationCompositionDecoderFileInCsar implements PolicyDecoder<Csar, ToscaEntity> {
- private ControlLoopDecoderFileInCsarParameterGroup decoderParameters;
+ private AutomationCompositionDecoderFileInCsarParameterGroup decoderParameters;
private static final String NODE_TYPES = "nodes.yml";
private static final String DATA_TYPES = "data.yml";
@@ -69,7 +69,7 @@ public class ControlLoopDecoderFileInCsar implements PolicyDecoder<Csar, ToscaEn
*/
@Override
public Collection<ToscaEntity> decode(final Csar csar) throws PolicyDecodingException {
- final Collection<ToscaEntity> controlLoopList = new ArrayList<>();
+ final Collection<ToscaEntity> automationCompositionList = new ArrayList<>();
ToscaServiceTemplate nodeTypes = null;
ToscaServiceTemplate dataTypes = null;
@@ -94,24 +94,24 @@ public class ControlLoopDecoderFileInCsar implements PolicyDecoder<Csar, ToscaEn
dataTypes = ReceptionUtil.decodeFile(zipFile, entry);
}
- if (entryName.contains(decoderParameters.getControlLoopType())) {
+ if (entryName.contains(decoderParameters.getAutomationCompositionType())) {
ReceptionUtil.validateZipEntry(entryName, csar.getCsarFilePath(), entry.getSize());
- final ToscaServiceTemplate controlLoop = ReceptionUtil.decodeFile(zipFile, entry);
- if (null != controlLoop.getToscaTopologyTemplate()) {
+ final ToscaServiceTemplate automationComposition = ReceptionUtil.decodeFile(zipFile, entry);
+ if (null != automationComposition.getToscaTopologyTemplate()) {
if (null != nodeTypes) {
- controlLoop.setNodeTypes(nodeTypes.getNodeTypes());
+ automationComposition.setNodeTypes(nodeTypes.getNodeTypes());
}
if (null != dataTypes) {
- controlLoop.setDataTypes(dataTypes.getDataTypes());
+ automationComposition.setDataTypes(dataTypes.getDataTypes());
}
- controlLoopList.add(controlLoop);
+ automationCompositionList.add(automationComposition);
}
}
}
} catch (final IOException | CoderException exp) {
- throw new PolicyDecodingException("Failed decoding the controlloop", exp);
+ throw new PolicyDecodingException("Failed decoding the acm", exp);
}
- return controlLoopList;
+ return automationCompositionList;
}
}
diff --git a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/ControlLoopDecoderFileInCsarParameterGroup.java b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/AutomationCompositionDecoderFileInCsarParameterGroup.java
index 358b1f87..a3efaa28 100644
--- a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/ControlLoopDecoderFileInCsarParameterGroup.java
+++ b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/AutomationCompositionDecoderFileInCsarParameterGroup.java
@@ -27,18 +27,18 @@ import org.onap.policy.common.parameters.annotations.NotNull;
import org.onap.policy.distribution.reception.parameters.PolicyDecoderConfigurationParameterGroup;
/**
- * Holds the parameters for the{@link ControlLoopDecoderFileInCsar}.
+ * Holds the parameters for the{@link AutomationCompositionDecoderFileInCsar}.
*
* @author Sirisha Manchikanti (sirisha.manchikanti@est.tech)
*/
@Getter
@NotNull
@NotBlank
-public class ControlLoopDecoderFileInCsarParameterGroup extends PolicyDecoderConfigurationParameterGroup {
+public class AutomationCompositionDecoderFileInCsarParameterGroup extends PolicyDecoderConfigurationParameterGroup {
- private String controlLoopType;
+ private String automationCompositionType;
- public ControlLoopDecoderFileInCsarParameterGroup() {
- super(ControlLoopDecoderFileInCsarParameterGroup.class.getSimpleName());
+ public AutomationCompositionDecoderFileInCsarParameterGroup() {
+ super(AutomationCompositionDecoderFileInCsarParameterGroup.class.getSimpleName());
}
}