Add time limit to locking facility 87/55487/4
authorJim Hahn <jrh3@att.com>
Wed, 27 Jun 2018 14:12:45 +0000 (10:12 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 27 Jun 2018 16:58:08 +0000 (12:58 -0400)
commitee2313141a40222a83d6bf39a15c3f9d4c3a239e
tree38dde92661c2082f8b14afcf7eae93709a99a532
parent7883ff2c523721284612ef5aac2a8a7fc1c1a396
Add time limit to locking facility

Modified the locking facility to add a time limit and remove the
callback parameter.  This affected both the default facility as
well as the distributed locking feature.  It will also require
a change to the rules for Closed Loop.
Changed testUnlock() to try locking with a different owner.
Default feature API should be OPER_UNHANDLED.
Put a few things back so-as not to break the drools-applications
build.  They can be removed once drools-applications is updated.
Fix newlines in API java.

Change-Id: I3ed7835cac6a582493a9bc8f6d1d4f3e6cb6289e
Issue-ID: POLICY-872
Signed-off-by: Jim Hahn <jrh3@att.com>
15 files changed:
feature-distributed-locking/src/main/feature/config/feature-distributed-locking.properties
feature-distributed-locking/src/main/java/org/onap/policy/distributed/locking/DistributedLockingFeature.java
feature-distributed-locking/src/main/java/org/onap/policy/distributed/locking/DistributedLockingProperties.java
feature-distributed-locking/src/main/java/org/onap/policy/distributed/locking/Heartbeat.java [deleted file]
feature-distributed-locking/src/main/java/org/onap/policy/distributed/locking/TargetLock.java
feature-distributed-locking/src/test/java/org/onap/policy/distributed/locking/TargetLockTest.java
policy-core/src/main/java/org/onap/policy/drools/core/lock/Lock.java
policy-core/src/main/java/org/onap/policy/drools/core/lock/LockRequestFuture.java [deleted file]
policy-core/src/main/java/org/onap/policy/drools/core/lock/PolicyResourceLockFeatureAPI.java
policy-core/src/main/java/org/onap/policy/drools/core/lock/PolicyResourceLockManager.java
policy-core/src/main/java/org/onap/policy/drools/core/lock/SimpleLockManager.java
policy-core/src/test/java/org/onap/policy/drools/core/lock/LockRequestFutureTest.java [deleted file]
policy-core/src/test/java/org/onap/policy/drools/core/lock/PolicyResourceLockFeatureAPITest.java
policy-core/src/test/java/org/onap/policy/drools/core/lock/PolicyResourceLockManagerTest.java
policy-core/src/test/java/org/onap/policy/drools/core/lock/SimpleLockManagerTest.java