From de514f246459666a87f93796f2027d6a6bf5c738 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Fri, 29 May 2020 17:05:20 -0400 Subject: Made Actor names public Some of the XxxActor.NAME constants were private. Made them public so drools-applications can reference them instead of hard-coding the text. Issue-ID: POLICY-1242 Change-Id: I849c979a3e209430db5132e6ff574ec73f1e3769 Signed-off-by: Jim Hahn --- .../controlloop/actor/appclcm/AppcLcmActorServiceProvider.java | 2 +- .../onap/policy/controlloop/actor/cds/CdsActorServiceProvider.java | 1 + .../policy/controlloop/actor/sdnr/SdnrActorServiceProvider.java | 2 +- .../onap/policy/controlloop/actor/vfc/VfcActorServiceProvider.java | 6 ++++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/models-interactions/model-actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmActorServiceProvider.java b/models-interactions/model-actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmActorServiceProvider.java index 704c44da7..393ce0ccb 100644 --- a/models-interactions/model-actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmActorServiceProvider.java +++ b/models-interactions/model-actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmActorServiceProvider.java @@ -57,7 +57,7 @@ public class AppcLcmActorServiceProvider extends BidirectionalTopicActor { - private static final String NAME = "SDNR"; + public static final String NAME = "SDNR"; // TODO old code: remove lines down to **HERE** diff --git a/models-interactions/model-actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VfcActorServiceProvider.java b/models-interactions/model-actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VfcActorServiceProvider.java index b7a41ddf0..5bd6b59ad 100644 --- a/models-interactions/model-actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VfcActorServiceProvider.java +++ b/models-interactions/model-actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VfcActorServiceProvider.java @@ -42,6 +42,8 @@ public class VfcActorServiceProvider extends ActorImpl { // Strings for VFC Actor private static final String VFC_ACTOR = "VFC"; + public static final String NAME = VFC_ACTOR; + // Strings for targets private static final String TARGET_VM = "VM"; @@ -58,9 +60,9 @@ public class VfcActorServiceProvider extends ActorImpl { * Constructor. */ public VfcActorServiceProvider() { - super(VFC_ACTOR); + super(NAME); - addOperator(new VfcOperator(VFC_ACTOR, Restart.NAME, Restart::new)); + addOperator(new VfcOperator(NAME, Restart.NAME, Restart::new)); } // TODO old code: remove lines down to **HERE** -- cgit 1.2.3-korg