diff options
author | Michael Dürre <michael.duerre@highstreet-technologies.com> | 2020-07-10 05:20:26 +0200 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2020-08-05 11:53:16 +0000 |
commit | 6b1a95c935f58d65cd6148f34b4c151642ff9458 (patch) | |
tree | a40dd2c22d6fde79eefb3eced635aabb91ac9054 /grToolkit/provider/src | |
parent | ad5c70ad6ab8514c5a5e4ed87d76877b1b451ccd (diff) |
upgrade plugins to sodium
fixed unit test and impl due changes in sodium
Issue-ID: CCSDK-2545
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Change-Id: I76d00cc9f2af0824536fe428cdd1c5e37f37689e
Diffstat (limited to 'grToolkit/provider/src')
2 files changed, 7 insertions, 4 deletions
diff --git a/grToolkit/provider/src/main/java/org/onap/ccsdk/sli/plugins/grtoolkit/GrToolkitProvider.java b/grToolkit/provider/src/main/java/org/onap/ccsdk/sli/plugins/grtoolkit/GrToolkitProvider.java index 14e27ef3..7a8b3deb 100755 --- a/grToolkit/provider/src/main/java/org/onap/ccsdk/sli/plugins/grtoolkit/GrToolkitProvider.java +++ b/grToolkit/provider/src/main/java/org/onap/ccsdk/sli/plugins/grtoolkit/GrToolkitProvider.java @@ -217,7 +217,7 @@ public class GrToolkitProvider implements AutoCloseable, GrToolkitService, DataT * on a single line. */ private void defineMembers() { - member = configDatastore.getActorContext().getCurrentMemberName().getName(); + member = configDatastore.getActorUtils().getCurrentMemberName().getName(); log.info("defineMembers(): Cluster member: {}", member); log.info("defineMembers(): Parsing akka.conf for cluster memberMap..."); @@ -452,6 +452,7 @@ public class GrToolkitProvider implements AutoCloseable, GrToolkitService, DataT * @deprecated No longer used since the refactor to use the HealthResolver * pattern. Retained so the logic can be replicated later. */ + @Deprecated private void isolateSiteFromCluster(ArrayList<ClusterActor> activeSite, ArrayList<ClusterActor> standbySite, String port) { log.info("isolateSiteFromCluster(): Halting Akka traffic..."); for(ClusterActor actor : standbySite) { @@ -486,6 +487,7 @@ public class GrToolkitProvider implements AutoCloseable, GrToolkitService, DataT * @deprecated No longer used since the refactor to use the HealthResolver * pattern. Retained so the logic can be replicated later. */ + @Deprecated private void downUnreachableNodes(ArrayList<ClusterActor> activeSite, ArrayList<ClusterActor> standbySite, String port) { log.info("downUnreachableNodes(): Setting site unreachable..."); JSONObject jolokiaInput = new JSONObject(); @@ -521,6 +523,7 @@ public class GrToolkitProvider implements AutoCloseable, GrToolkitService, DataT * @deprecated No longer used since the refactor to use the HealthResolver * pattern. Retained so the logic can be replicated later. */ + @Deprecated private void backupMdSal(ArrayList<ClusterActor> activeSite, String port) { log.info("backupMdSal(): Backing up data..."); try { diff --git a/grToolkit/provider/src/test/java/org/onap/ccsdk/sli/plugins/grtoolkit/GrToolkitProviderTest.java b/grToolkit/provider/src/test/java/org/onap/ccsdk/sli/plugins/grtoolkit/GrToolkitProviderTest.java index 3be15959..edd6d1b8 100644 --- a/grToolkit/provider/src/test/java/org/onap/ccsdk/sli/plugins/grtoolkit/GrToolkitProviderTest.java +++ b/grToolkit/provider/src/test/java/org/onap/ccsdk/sli/plugins/grtoolkit/GrToolkitProviderTest.java @@ -35,7 +35,7 @@ import org.onap.ccsdk.sli.plugins.grtoolkit.data.ClusterActor; import org.opendaylight.controller.cluster.access.concepts.MemberName; import org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterface; -import org.opendaylight.controller.cluster.datastore.utils.ActorContext; +import org.opendaylight.controller.cluster.datastore.utils.ActorUtils; import org.opendaylight.controller.md.sal.binding.api.DataBroker; import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService; import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; @@ -101,11 +101,11 @@ public class GrToolkitProviderTest { dbLibService = mock(DbLibService.class); connection = mock(DBLibConnection.class); - ActorContext actorContext = mock(ActorContext.class); + ActorUtils actorContext = mock(ActorUtils.class); MemberName memberName = MemberName.forName("Test"); when(actorContext.getCurrentMemberName()).thenReturn(memberName); - when(configDatastore.getActorContext()).thenReturn(actorContext); + when(configDatastore.getActorUtils()).thenReturn(actorContext); try { when(connection.isReadOnly()).thenReturn(false); |