diff options
author | Jim Hahn <jrh3@att.com> | 2020-02-18 19:38:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-18 19:38:13 +0000 |
commit | ca409ee108f3f653d66be804e8a9f95f794e26d4 (patch) | |
tree | e6433334a55939940c9d01854d9ccbc78dc4e05f /models-interactions/model-actors/actor.so | |
parent | 70887052f434c3cb91c2cf782c11a68aed76f9ba (diff) | |
parent | ef562e809d00aea6fbdaf845b7dd1ada26f40e22 (diff) |
Merge "Actor updates to support SO"
Diffstat (limited to 'models-interactions/model-actors/actor.so')
-rw-r--r-- | models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoActorServiceProvider.java | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoActorServiceProvider.java b/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoActorServiceProvider.java index a743f49c0..51d14a2c0 100644 --- a/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoActorServiceProvider.java +++ b/models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoActorServiceProvider.java @@ -54,12 +54,13 @@ import org.slf4j.LoggerFactory; public class SoActorServiceProvider extends ActorImpl { private static final Logger logger = LoggerFactory.getLogger(SoActorServiceProvider.class); + public static final String NAME = "SO"; + + // TODO old code: remove lines down to **HERE** + private static final String TENANT_NOT_FOUND = "Tenant Item not found in AAI response {}"; private static final String CONSTRUCTED_SO_MSG = "Constructed SO request: {}"; - // Strings for SO Actor - private static final String SO_ACTOR = "SO"; - // Strings for targets private static final String TARGET_VFC = "VFC"; @@ -89,13 +90,17 @@ public class SoActorServiceProvider extends ActorImpl { private static String lastServiceItemServiceInstanceId; private static String lastVfModuleItemVfModuleInstanceId; + // **HERE** + public SoActorServiceProvider() { - super(SO_ACTOR); + super(NAME); } + // TODO old code: remove lines down to **HERE** + @Override public String actor() { - return SO_ACTOR; + return NAME; } @Override @@ -237,7 +242,7 @@ public class SoActorServiceProvider extends ActorImpl { */ public SoRequest constructRequestCq(VirtualControlLoopEvent onset, ControlLoopOperation operation, Policy policy, AaiCqResponse aaiCqResponse) { - if (!SO_ACTOR.equals(policy.getActor()) || !recipes().contains(policy.getRecipe())) { + if (!NAME.equals(policy.getActor()) || !recipes().contains(policy.getRecipe())) { return null; } @@ -444,4 +449,6 @@ public class SoActorServiceProvider extends ActorImpl { return cloudConfiguration; } + // **HERE** + } |