From 149df90bb72ece740accaf3ea037cf40defcd1bd Mon Sep 17 00:00:00 2001 From: jhh Date: Tue, 9 Mar 2021 10:01:17 -0600 Subject: add no locking feature It provides an interface to applications for locking purposes that always succeeds. It does not deny acquiring resource locks. Issue-ID: POLICY-3114 Signed-off-by: jhh Change-Id: I6aebb5f40e4176e0ff7b0e6c6d4042a79dd0b7a3 Signed-off-by: jhh --- .../main/java/org/onap/policy/drools/system/PolicyEngineManager.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'policy-management/src/main') diff --git a/policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngineManager.java b/policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngineManager.java index 1b2c13a1..25601c8b 100644 --- a/policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngineManager.java +++ b/policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngineManager.java @@ -290,6 +290,7 @@ class PolicyEngineManager implements PolicyEngine { try { this.lockManager = feature.beforeCreateLockManager(this, properties); if (this.lockManager != null) { + logger.info("overridden lock manager is {}", this.lockManager); return; } } catch (RuntimeException e) { @@ -305,6 +306,8 @@ class PolicyEngineManager implements PolicyEngine { this.lockManager = new SimpleLockManager(this, new Properties()); } + logger.info("lock manager is {}", this.lockManager); + /* policy-engine dispatch post operation hook */ FeatureApiUtils.apply(getEngineProviders(), feature -> feature.afterCreateLockManager(this, properties, this.lockManager), -- cgit 1.2.3-korg