From 553154ae42e5362dacab6c190b8cf1e1388f5b87 Mon Sep 17 00:00:00 2001 From: Jakub Dudycz Date: Fri, 15 Jun 2018 16:09:41 +0200 Subject: Change Consul configuration update policy - At startup default config is applied - Configuration is updated in intervals given at VES-HV service startup to allow dynamic changes - Included consul service startup in docker-compose file - VES-HV now exits when fails to acquire confguration from consul Closes ONAP-229 Change-Id: I896cfd177fa45381f9822278c2dffc113dd3df72 Signed-off-by: jakub.dudycz@nokia.com Issue-ID: DCAEGEN2-601 --- .../dcae/collectors/veshv/utils/commandline/CommandLineOption.kt | 6 ++++++ 1 file changed, 6 insertions(+) (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 942ca31f..b20f2aab 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 @@ -35,6 +35,12 @@ enum class CommandLineOption(val option: Option) { .desc("URL of ves configuration on consul") .build() ), + UPDATE_INTERVAL(Option.builder("I") + .longOpt("update-interval") + .hasArg() + .desc("Consul configuration update interval in seconds") + .build() + ), VES_HV_PORT(Option.builder("p") .longOpt("ves-port") .required() -- cgit 1.2.3-korg