Remove expired PDPs 47/122147/4
authorJim Hahn <jrh3@att.com>
Wed, 23 Jun 2021 14:11:14 +0000 (10:11 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 23 Jun 2021 22:01:24 +0000 (18:01 -0400)
commitbcb522a96d60e6b50383645f870100a72ee11db7
treecdf2ee03fb5f784d9640f9fb1b2bcf5213906ac4
parent00e9e19f5ac50cb5ce4cd09a9c403797a6e8f2b3
Remove expired PDPs

Added code to remove PDPs for which no message has been received for a
while.
Added a max-age field to the request-map parameters, changing the
parameters class to use a Builder, in the process.
Deleted the PdpTracker class, as its functionality was replaced by the
expiration checker.
Changed port numbers in some tests, due to collisions in junit tests.

Issue-ID: POLICY-3407
Change-Id: Ifbfbc03b833a4f11ee5e910e256ee42e21a0afab
Signed-off-by: Jim Hahn <jrh3@att.com>
19 files changed:
main/src/main/java/org/onap/policy/pap/main/PapConstants.java
main/src/main/java/org/onap/policy/pap/main/comm/PdpModifyRequestMap.java
main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
main/src/main/java/org/onap/policy/pap/main/comm/PdpTracker.java [deleted file]
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/RequestImpl.java
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/RequestListener.java
main/src/main/java/org/onap/policy/pap/main/parameters/PdpModifyRequestMapParams.java
main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
main/src/test/java/org/onap/policy/pap/main/comm/CommonRequestBase.java
main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java
main/src/test/java/org/onap/policy/pap/main/comm/PdpTrackerTest.java [deleted file]
main/src/test/java/org/onap/policy/pap/main/comm/msgdata/RequestImplTest.java
main/src/test/java/org/onap/policy/pap/main/parameters/TestPdpModifyRequestMapParams.java
main/src/test/java/org/onap/policy/pap/main/startstop/TestMain.java
main/src/test/java/org/onap/policy/pap/main/startstop/TestPapActivator.java
main/src/test/resources/parameters/MinimumParameters.json
main/src/test/resources/parameters/PapConfigParameters.json
main/src/test/resources/parameters/PapConfigParameters_InvalidName.json
main/src/test/resources/parameters/PapConfigParameters_sim.json [deleted file]