[POLICY-75] Problems with KieScanner 51/5851/1
authorRalph Straubs <rs8887@att.com>
Mon, 17 Jul 2017 09:23:23 +0000 (04:23 -0500)
committerRalph Straubs <rs8887@att.com>
Mon, 17 Jul 2017 09:24:04 +0000 (04:24 -0500)
commit43db8ee773f7505a328e4e04429d1bbaddcc9d9b
tree1a7bc682c96ebd48813b17c2c4262d0899a45d07
parent564f81837de6d50681270ed3f559cb7be068d3cd
[POLICY-75] Problems with KieScanner

1) Change the 'PolicySession.DefaultThreadModel' thread so it
   continually calls 'fireUntilHalt' until it is explicitly stopped by
   the 'stop()' method. This allows it to restart after 'KieScanner'
   triggers an update.

2) Remove call to 'startScanner' in 'PolicyContainer' constructor --
   we saw at least one case where 'KieScanner' would repeatedly update
   the Drools container every 60 seconds.

Change-Id: I0d0e6c5650cef12ca00cf88f9b8cc52323bb6317
Signed-off-by: Ralph Straubs <rs8887@att.com>
policy-core/src/main/java/org/openecomp/policy/drools/core/PolicyContainer.java
policy-core/src/main/java/org/openecomp/policy/drools/core/PolicySession.java