X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=models-interactions%2Fmodel-actors%2Factor.appclcm%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fcontrolloop%2Factor%2Fappclcm%2FAppcLcmOperation.java;fp=models-interactions%2Fmodel-actors%2Factor.appclcm%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fcontrolloop%2Factor%2Fappclcm%2FAppcLcmOperation.java;h=1fd6f2d99ac5aa0fa376064b69cef47777b7adbb;hb=49f07db935d114b72a44e446867b16262dd552aa;hp=4e8f590085f2dfc7093220870c956e97b788df32;hpb=71be21fd5b9b52c613bb855f00a79a51e81906dd;p=policy%2Fmodels.git diff --git a/models-interactions/model-actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmOperation.java b/models-interactions/model-actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmOperation.java index 4e8f59008..1fd6f2d99 100644 --- a/models-interactions/model-actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmOperation.java +++ b/models-interactions/model-actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmOperation.java @@ -3,7 +3,7 @@ * ONAP * ================================================================================ * Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved. - * Modifications Copyright (C) 2023 Nordix Foundation. + * Modifications Copyright (C) 2023-2024 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,8 +25,8 @@ import java.util.List; import java.util.Map; import org.onap.policy.appclcm.AppcLcmBody; import org.onap.policy.appclcm.AppcLcmCommonHeader; -import org.onap.policy.appclcm.AppcLcmDmaapWrapper; import org.onap.policy.appclcm.AppcLcmInput; +import org.onap.policy.appclcm.AppcLcmMessageWrapper; import org.onap.policy.appclcm.AppcLcmOutput; import org.onap.policy.appclcm.AppcLcmResponseCode; import org.onap.policy.appclcm.AppcLcmResponseStatus; @@ -39,7 +39,7 @@ import org.onap.policy.controlloop.actorserviceprovider.parameters.Bidirectional import org.onap.policy.controlloop.actorserviceprovider.parameters.ControlLoopOperationParams; import org.onap.policy.controlloop.actorserviceprovider.topic.SelectorKey; -public class AppcLcmOperation extends BidirectionalTopicOperation { +public class AppcLcmOperation extends BidirectionalTopicOperation { private static final String MISSING_STATUS = "APPC-LCM response is missing the response status"; public static final String VNF_ID_KEY = "vnf-id"; @@ -50,7 +50,7 @@ public class AppcLcmOperation extends BidirectionalTopicOperation - * Note: if these change, then {@link #getExpectedKeyValues(int, AppcLcmDmaapWrapper)} + * Note: if these change, then {@link #getExpectedKeyValues(int, AppcLcmMessageWrapper)} * must be updated accordingly. */ public static final List SELECTOR_KEYS = @@ -63,11 +63,11 @@ public class AppcLcmOperation extends BidirectionalTopicOperation getExpectedKeyValues(int attempt, AppcLcmDmaapWrapper request) { + protected List getExpectedKeyValues(int attempt, AppcLcmMessageWrapper request) { return List.of(getSubRequestId()); } @Override - protected Status detmStatus(String rawResponse, AppcLcmDmaapWrapper response) { + protected Status detmStatus(String rawResponse, AppcLcmMessageWrapper response) { AppcLcmResponseStatus status = getStatus(response); if (status == null) { throw new IllegalArgumentException(MISSING_STATUS); @@ -164,7 +164,8 @@ public class AppcLcmOperation extends BidirectionalTopicOperation