From 6369af0f6cb53619daa253d5da0f360f2bf67fc3 Mon Sep 17 00:00:00 2001 From: DylanB95EST Date: Wed, 20 Apr 2022 10:35:11 +0100 Subject: Watchdog-process that changes CM Handles state Add a fixed delay scheduler to switch cm-handles found in an ADVISED state to a READY state Scheduler currently runs every 30 seconds Will only update a single cm-handle at a time Queries CM-Handle with Advised States Only using CPS Path. Will choose cm handle at random Issue-ID: CPS-875 Change-Id: Ie1b49c89a0350d20e14748a65f9c1d260d8502d2 Signed-off-by: DylanB95EST --- .../src/main/java/org/onap/cps/spi/CpsDataPersistenceService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cps-service') diff --git a/cps-service/src/main/java/org/onap/cps/spi/CpsDataPersistenceService.java b/cps-service/src/main/java/org/onap/cps/spi/CpsDataPersistenceService.java index fdcf15bee..06da3ffc8 100644 --- a/cps-service/src/main/java/org/onap/cps/spi/CpsDataPersistenceService.java +++ b/cps-service/src/main/java/org/onap/cps/spi/CpsDataPersistenceService.java @@ -23,6 +23,7 @@ package org.onap.cps.spi; import java.util.Collection; +import java.util.List; import java.util.Map; import org.onap.cps.spi.model.DataNode; @@ -145,8 +146,8 @@ public interface CpsDataPersistenceService { * included in the output * @return the data nodes found i.e. 0 or more data nodes */ - Collection queryDataNodes(String dataspaceName, String anchorName, - String cpsPath, FetchDescendantsOption fetchDescendantsOption); + List queryDataNodes(String dataspaceName, String anchorName, + String cpsPath, FetchDescendantsOption fetchDescendantsOption); /** * Starts a session which allows use of locks and batch interaction with the persistence service. -- cgit 1.2.3-korg