Fixed xacml-pdp registration 00/91900/1
authorJim Hahn <jrh3@att.com>
Tue, 23 Jul 2019 19:00:59 +0000 (15:00 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 23 Jul 2019 19:00:59 +0000 (15:00 -0400)
commitd1313757cc0b0b0b0a073057bdc5f6f554960ef7
tree35b5d0e93574740ab68456fde60a43e697e3dc9b
parent77d4dd1668c290abfd5f2c6d4b1866416c313033
Fixed xacml-pdp registration

Apparently, TimerTasks may not be cancelled and then re-scheduled.
Modified the code to use a scheduled thread pool instead.

Change-Id: I2e26a5a37636f570f362481823a0274fe558e2e9
Issue-ID: POLICY-1939
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pdpx/main/comm/XacmlPdpHearbeatPublisher.java
main/src/test/java/org/onap/policy/pdpx/main/comm/XacmlPdpHearbeatPublisherTest.java