diff options
author | talig <talig@amdocs.com> | 2018-02-28 10:53:11 +0200 |
---|---|---|
committer | Avi Gaffa <avi.gaffa@amdocs.com> | 2018-02-28 11:28:17 +0000 |
commit | 1b03220adb20c86530e983a6cda78e1732cc05d7 (patch) | |
tree | 9eb1192f6baf4f12196a43c2364eb7db09cb7727 /openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-api/src/main/java | |
parent | 23cc7f5c7d811d7ed1038b354db4c07687e17cc3 (diff) |
Healing manager logic enhancements
Check whether healers need to run before running them.
Heal private: if there's at least one structure healer - force sync (instead of running data healers).
Change-Id: I5cc5ce43d61a59d5cfd6a1db717d6e3e4be1119a
Issue-ID: SDC-1066
Signed-off-by: talig <talig@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-api/src/main/java')
-rw-r--r-- | openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-api/src/main/java/org/openecomp/sdc/healing/interfaces/Healer.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-api/src/main/java/org/openecomp/sdc/healing/interfaces/Healer.java b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-api/src/main/java/org/openecomp/sdc/healing/interfaces/Healer.java index 13599ea5d4..46ed591f8c 100644 --- a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-api/src/main/java/org/openecomp/sdc/healing/interfaces/Healer.java +++ b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-api/src/main/java/org/openecomp/sdc/healing/interfaces/Healer.java @@ -18,7 +18,9 @@ package org.openecomp.sdc.healing.interfaces; import org.openecomp.sdc.versioning.dao.types.Version; -@FunctionalInterface public interface Healer { - Object heal(String itemId, Version version) throws Exception; + + boolean isHealingNeeded(String itemId, Version version); + + void heal(String itemId, Version version) throws Exception; } |