diff options
author | Jorge Hernandez <jh1730@att.com> | 2018-01-22 14:31:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-01-22 14:31:03 +0000 |
commit | 3c7c997c6f081d749bc0973d1249a18356280e71 (patch) | |
tree | 9ec1ed93580aca36e95f4798a6c3be9201b5efef /controlloop/common/actors/actor.vfc | |
parent | 5f08b93d6642381eb0578ca2048951ac766bc33d (diff) | |
parent | 421a0843285f262b5cfc907ebd804ecd06d3fbe3 (diff) |
Merge "Fix Tech Debt/JUnit on VFC POJOs"
Diffstat (limited to 'controlloop/common/actors/actor.vfc')
-rw-r--r-- | controlloop/common/actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VFCActorServiceProvider.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/controlloop/common/actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VFCActorServiceProvider.java b/controlloop/common/actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VFCActorServiceProvider.java index dae60cb82..71c7cea25 100644 --- a/controlloop/common/actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VFCActorServiceProvider.java +++ b/controlloop/common/actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VFCActorServiceProvider.java @@ -82,19 +82,19 @@ public class VFCActorServiceProvider implements Actor { } serviceInstance = tempVnfResp.getServiceId(); } - request.nsInstanceId = serviceInstance; - request.requestId = onset.getRequestID(); - request.healRequest = new VFCHealRequest(); - request.healRequest.vnfInstanceId = onset.getAAI().get("generic-vnf.vnf-id"); - request.healRequest.cause = operation.getMessage(); - request.healRequest.additionalParams = new VFCHealAdditionalParams(); + request.setNSInstanceId(serviceInstance); + request.setRequestId(onset.getRequestID()); + request.setHealRequest(new VFCHealRequest()); + request.getHealRequest().setVnfInstanceId(onset.getAAI().get("generic-vnf.vnf-id")); + request.getHealRequest().setCause(operation.getMessage()); + request.getHealRequest().setAdditionalParams(new VFCHealAdditionalParams()); switch (policy.getRecipe().toLowerCase()) { case "restart": - request.healRequest.additionalParams.action = "restartvm"; - request.healRequest.additionalParams.actionInfo = new VFCHealActionVmInfo(); - request.healRequest.additionalParams.actionInfo.vmid = onset.getAAI().get("vserver.vserver-id"); - request.healRequest.additionalParams.actionInfo.vmname = onset.getAAI().get("vserver.vserver-name"); + request.getHealRequest().getAdditionalParams().setAction("restartvm"); + request.getHealRequest().getAdditionalParams().setActionInfo(new VFCHealActionVmInfo()); + request.getHealRequest().getAdditionalParams().getActionInfo().setVmid(onset.getAAI().get("vserver.vserver-id")); + request.getHealRequest().getAdditionalParams().getActionInfo().setVmname(onset.getAAI().get("vserver.vserver-name")); break; default: return null; |