commit | 6931309e2969dbf7be71777f048dcab4830d1c05 | [log] [tgz] |
---|---|---|
author | ramverma <ram.krishna.verma@ericsson.com> | Fri Sep 21 11:09:58 2018 +0100 |
committer | ramverma <ram.krishna.verma@ericsson.com> | Fri Sep 21 17:40:10 2018 +0100 |
tree | 4c1b51e9cc2bbce0a28460a21564380c3bac818a | |
parent | b15571184fabee50986f38f40577b87281e8765c [diff] |
Adding retry logic for SDC Client in Distribution * SdcReceptionHandler in distribution tries to initialize & start the SDC Client when distribution framework comes up. If by any chance the SDC service is not up then currently the SdcReceptionHandler throws an exception to the distribution activator and the distribution framework goes down. And the health check fails. * This review fixes it by adding a retry mechanism in SdcReceptionHandler for all lifecycle methods of SdcClient (init, start, stop). After failure the same operation is retried again with some delay. The delay is passed as parameter from configuration json file. The minimum default value for the delay is kept as 30 seconds. * Adding SdcClientHandler timer task for performing the retries asynchronously. Change-Id: Ibb6d936fcf4872c82f87e2cd04a00583b81c92ff Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Copyright 2018 AT&T Intellectual Property. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
This source repository contains the ONAP Policy SDC Service Distribution code.
To build it using Maven 3, run: mvn clean install