From a2d18b375631d010432089ed18db327c9e4f26bf Mon Sep 17 00:00:00 2001 From: Jakub Dudycz Date: Fri, 20 Jul 2018 16:37:02 +0200 Subject: Fix consul request timeout issue Fix timeout issue when using consul blocking query calls by switching to standard requests peformed in given interval Closes ONAP-628 Change-Id: Ifaf7ddfa27045015a7a90c178e0d6d38955c0c58 Signed-off-by: Jakub Dudycz Issue-ID: DCAEGEN2-601 --- .../dcae/collectors/veshv/utils/commandline/CommandLineOption.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hv-collector-utils') diff --git a/hv-collector-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/utils/commandline/CommandLineOption.kt b/hv-collector-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/utils/commandline/CommandLineOption.kt index 27213c95..a654868e 100644 --- a/hv-collector-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/utils/commandline/CommandLineOption.kt +++ b/hv-collector-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/utils/commandline/CommandLineOption.kt @@ -41,6 +41,12 @@ enum class CommandLineOption(val option: Option) { .desc("Delay of first request to consul in seconds") .build() ), + CONSUL_REQUEST_INTERVAL(Option.builder("I") + .longOpt("request-interval") + .hasArg() + .desc("Interval of consul configuration requests in seconds") + .build() + ), VES_HV_PORT(Option.builder("p") .longOpt("ves-port") .required() @@ -105,7 +111,7 @@ enum class CommandLineOption(val option: Option) { |connection might be closed.""".trimMargin()) .build() ), - DUMMY_MODE(Option.builder("d") + DUMMY_MODE(Option.builder("u") .longOpt("dummy") .desc("If present will start in dummy mode (dummy external services)") .build() -- cgit 1.2.3-korg