Adding PdpGroup healthcheck REST API in PAP 29/90229/5
authorramverma <ram.krishna.verma@est.tech>
Fri, 21 Jun 2019 12:53:27 +0000 (12:53 +0000)
committerramverma <ram.krishna.verma@est.tech>
Fri, 21 Jun 2019 12:53:27 +0000 (12:53 +0000)
commit79e76f5e61f62178b1e88cb00711395d1d07ca9f
treedeb7ad384d5858ae9f833b10f9844517b3b96300
parentf67570131cfff5090f58b104333655461c784a1b
Adding PdpGroup healthcheck REST API in PAP

Adding PdpGroup healthcheck REST API in PAP to return the health status
of all the Pdps registered with this PAP instance. The healthcheck
status will be based on the regular heartbeat coming from the pdps.

Change-Id: Ia0f1603b513bf62ce1df3058427dc6ccaf179cb3
Issue-ID: POLICY-1770
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
main/src/main/java/org/onap/policy/pap/main/rest/PapRestServer.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupHealthCheckControllerV1.java [new file with mode: 0644]
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupHealthCheckProvider.java [new file with mode: 0644]
main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupHealthCheckControllerV1.java [new file with mode: 0644]
main/src/test/java/org/onap/policy/pap/main/rest/TestPdpGroupHealthCheckProvider.java [new file with mode: 0644]
main/src/test/resources/rest/pdpGroup.json [new file with mode: 0644]