[POLICY-21] PDP-D gets stuck during shutdown

The fix for this problem is included in the following enhancements:

1) Define a new nested interface 'PolicySession.ThreadModel', which makes
   it possible for features to control the thread or threads processing
   a 'KieSession'.

   The nested class 'PolicySession.DefaultThreadModel' implements the
   default version, which uses 'KieSession.fireUntilHalt()' instead of
   polling 'KieSession.fireAllRules()'.

   A new method 'selectThreadModel(PolicySession session)' has been added
   to 'PolicySessionFeatureAPI' to enable this selection.

2) Update thread names when 'KieContainer.updateToVersion(...)' is called

Change-Id: Ic48089fe5660501e2e3d42b87501697211a9d0fe
Signed-off-by: Ralph Straubs <rs8887@att.com>
3 files changed
tree: 72c6b95e049790fbfeb5ad96066fa4fbbd112d38
  1. packages/
  2. policy-core/
  3. policy-endpoints/
  4. policy-healthcheck/
  5. policy-management/
  6. policy-utils/
  7. .gitignore
  8. .gitreview
  9. LICENSE.txt
  10. pom.xml
  11. README.md
  12. version.properties
README.md

This source repository contains the OpenECOMP Policy DroolsPDP code. The settings file only needs to support the standard Maven repositories (e.g. central = http://repo1.maven.org/maven2/), and any proxy settings needed in your environment.

To build it using Maven 3, first build 'policy-common-modules' (which contains dependencies), and then run: mvn clean install