From 1422bed4c1a002e663fd7c2c4c204831e5f7aa9a Mon Sep 17 00:00:00 2001 From: Filip Krzywka Date: Thu, 28 Feb 2019 17:33:02 +0100 Subject: Use CBS by means of SDK in place of Consul - changed IO creation in main to fix error with too early calling changeState method on collector HealthState - increased coverage a little with few tests - corrected coverage-report pom file to include new modules - temporarily changed to 1.1.4-SNAPSHOT version of sdk due to need of new version of CBSLookup Change-Id: Ic73b46cf881ab4fabf52bef0327b09082aa90dc6 Issue-ID: DCAEGEN2-1302 Signed-off-by: Filip Krzywka --- .../collectors/veshv/commandline/CommandLineOption.kt | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'sources/hv-collector-commandline/src/main/kotlin') diff --git a/sources/hv-collector-commandline/src/main/kotlin/org/onap/dcae/collectors/veshv/commandline/CommandLineOption.kt b/sources/hv-collector-commandline/src/main/kotlin/org/onap/dcae/collectors/veshv/commandline/CommandLineOption.kt index 0c3f60bb..31849215 100644 --- a/sources/hv-collector-commandline/src/main/kotlin/org/onap/dcae/collectors/veshv/commandline/CommandLineOption.kt +++ b/sources/hv-collector-commandline/src/main/kotlin/org/onap/dcae/collectors/veshv/commandline/CommandLineOption.kt @@ -38,26 +38,18 @@ enum class CommandLineOption(val option: Option, val required: Boolean = false) .build(), required = true ), - CONSUL_CONFIG_URL( - Option.builder("c") - .longOpt("config-url") - .hasArg() - .desc("URL of ves configuration on consul") - .build(), - required = true - ), - CONSUL_FIRST_REQUEST_DELAY( + CONFIGURATION_FIRST_REQUEST_DELAY( Option.builder("d") .longOpt("first-request-delay") .hasArg() - .desc("Delay of first request to consul in seconds") + .desc("Delay of first request for configuration in seconds") .build() ), - CONSUL_REQUEST_INTERVAL( + CONFIGURATION_REQUEST_INTERVAL( Option.builder("I") .longOpt("request-interval") .hasArg() - .desc("Interval of consul configuration requests in seconds") + .desc("Interval of configuration requests in seconds") .build() ), VES_HV_PORT( -- cgit 1.2.3-korg