Changes were related to the statistics saved on DB

models:

Addded the undeploy counts on Pdp Statistics concept/entity.

pap:

Updated the Pdp message to process undeploy counts.

drools-pdp:

Updated the Lifecycle for Pdp updates

apex-pdp:

Updated the start/stop basedOnPolicies methods to check for deploy/undeploy lists and increase the ref count.


All the services listening to PdpUpdate messages check for deploy and undeploy separately and increase the counts.

The in memory manager for statistics are not affected, except for apex-pdp - it checks from the in memory manager to send through pdp message.


Code reviews:

https://gerrit.onap.org/r/c/policy/models/+/122453 (merged)

https://gerrit.onap.org/r/c/policy/pap/+/122499 (merged)

https://gerrit.onap.org/r/c/policy/drools-pdp/+/122505

https://gerrit.onap.org/r/c/policy/apex-pdp/+/122527

  • No labels

1 Comment

  1. Yes, we should have one class to track the statistics, from policy-models.  We can add some synchronized incrementXxxCount() methods for use by the various PDPs.