APEX changes to support policy disable/enable and some improvements 83/110483/6
authora.sreekumar <ajith.sreekumar@bell.ca>
Thu, 23 Jul 2020 09:36:32 +0000 (10:36 +0100)
committera.sreekumar <ajith.sreekumar@bell.ca>
Fri, 24 Jul 2020 16:13:47 +0000 (17:13 +0100)
commitf68190af4f0251934734841352a77758ba53653e
tree27dcbdf0399740f307fee1fc0937afb18b52dd41
parent2169b3fbf66153ea7e066ba0057585822208d6f4
APEX changes to support policy disable/enable and some improvements

1) Do not stop all the marshallers/unmarshallers while updating the
engine. Stop and remove only those that are part of the policies that
are undeployed.
2) Do not reinitilaize any marshaller/unmarshaller that is already
initilaized as part of the policies which were already deployed.
Initialize only the ones as part of any newly deployed policy.
3) EngineParameters could be different in different policies. Aggregate
these parameters and make it available in the engine for any running policy.
4) Enable support for running policies with same model and different
configurations.

Change-Id: If74807a0515a741ef4e53bd0a93e43b05872f6b5
Issue-ID: POLICY-2536
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
model/policy-model/src/main/java/org/onap/policy/apex/model/policymodel/handling/PolicyModelMerger.java
model/policy-model/src/test/java/org/onap/policy/apex/model/policymodel/handling/PolicyModelMergerTest.java
services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexActivator.java
services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexMain.java
services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/ApexParameterHandler.java