diff options
author | jhh <jorge.hernandez-herrero@att.com> | 2021-03-09 10:01:17 -0600 |
---|---|---|
committer | jhh <jorge.hernandez-herrero@att.com> | 2021-03-09 15:03:32 -0600 |
commit | 149df90bb72ece740accaf3ea037cf40defcd1bd (patch) | |
tree | f0895c1729c06403abecadca1065d3dfc25de35f /policy-management | |
parent | dd9d31e90873e12623865fb21bf2e4603e3e0f19 (diff) |
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 <jorge.hernandez-herrero@att.com>
Change-Id: I6aebb5f40e4176e0ff7b0e6c6d4042a79dd0b7a3
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'policy-management')
-rw-r--r-- | policy-management/src/main/java/org/onap/policy/drools/system/PolicyEngineManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
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), |