Use refresh() instead of lock() in guard 35/56735/1
authorJim Hahn <jrh3@att.com>
Mon, 16 Jul 2018 21:04:55 +0000 (17:04 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 16 Jul 2018 21:08:22 +0000 (17:08 -0400)
commitf892e8b13ea87c1d7fb1c890f64ff00fc6e2de5f
treef8cef500ab1a90f5c893a8e8e6767887c5a120cb
parentb266225319cf01ce0d778074fc1f792a3f7a1321
Use refresh() instead of lock() in guard

This is the second step of separating the lock "refresh" operation
from the original "lock" operation.
Modified PolicyGuard to use refresh() to extend a lock.  Also removed
the host name from the owner String, as it will no be longer needed
(once the final step is done).

Change-Id: I3a498e6f81d9dba1bbdfd6f7388087355192bcf5
Issue-ID: POLICY-872
Signed-off-by: Jim Hahn <jrh3@att.com>
controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuard.java
controlloop/common/guard/src/test/java/org/onap/policy/guard/PolicyGuardTest.java