Added support for 'Active' and 'Passive' states. 62/97962/3
authorAli Hockla <ah999m@att.com>
Tue, 5 Nov 2019 14:15:20 +0000 (08:15 -0600)
committerAli Hockla <ah999m@att.com>
Tue, 5 Nov 2019 19:46:33 +0000 (13:46 -0600)
commitdd69ccf79236b5268cc8cac2638fcd07f373bd4d
tree35db5821e4078d6a7dbed48c0a3adf700ca0a416
parentda6120bf874de49a4b998b705e6b5cc0ee69bd03
Added support for 'Active' and 'Passive' states.

Removed the rest server start/stop from the Activator because the engine
starts in PASSIVE state.
Added code to start/stop the rest server when a pdp state change occurs.

Issue-ID: POLICY-2154
Change-Id: Iec6fcc990dc3dde702a911eb4f90d29e25c395a2
Signed-off-by: Ali Hockla <ah999m@att.com>
main/src/main/java/org/onap/policy/pdpx/main/XacmlState.java
main/src/main/java/org/onap/policy/pdpx/main/startstop/XacmlPdpActivator.java
main/src/test/java/org/onap/policy/pdpx/main/CommonRest.java
main/src/test/java/org/onap/policy/pdpx/main/XacmlStateTest.java
main/src/test/java/org/onap/policy/pdpx/main/rest/TestAbbreviateDecisionResults.java
main/src/test/java/org/onap/policy/pdpx/main/rest/TestDecision.java
main/src/test/java/org/onap/policy/pdpx/main/startstop/TestXacmlPdpActivator.java