summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/service/src
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-02-22 12:12:30 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-02-22 12:24:37 +0530
commitb3f8c28fa4c50d0acd19ef98638feb0e9bd7457f (patch)
treedea38c3b6fa51e5dbd9afbbaf045d051bc49d520 /ResmanagementService/service/src
parent82abcef86c72ee95b628752746db112541b43f91 (diff)
Improve realiabilty by using sleep instead of wait
Issue-ID: VFC-764 Change-Id: I6b91a1c3d5655eb0bdae9549f4d630094c55df8e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'ResmanagementService/service/src')
-rw-r--r--ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrService.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrService.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrService.java
index 625b41d..12e4061 100644
--- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrService.java
+++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrService.java
@@ -106,9 +106,6 @@ public class ResmgrAdapterMgrService implements IResmgrAdapterMgrService {
private static class RegisterResmgrThread implements Runnable {
- // Thread lock Object
- private final Object lockObject = new Object();
-
private IResmgrAdapter2MSBManager adapter2MSBMgr = new ResmgrAdapter2MSBManager();
// url and mothedtype
@@ -151,9 +148,7 @@ public class ResmgrAdapterMgrService implements IResmgrAdapterMgrService {
// if registration fails,wait one minute and try again
try {
- synchronized(lockObject) {
- lockObject.wait(Constant.REPEAT_REG_TIME);
- }
+ Thread.sleep(Constant.REPEAT_REG_TIME);
} catch(InterruptedException e) {
LOG.error(e.getMessage(), e);
// Restore interrupted state...