From 53dbf8e66ad83c2d5f06279a0d7446e5e8be68e8 Mon Sep 17 00:00:00 2001 From: Jakub Dudycz Date: Mon, 23 Jul 2018 14:51:00 +0200 Subject: Configure xnf simulator api listen port Closes ONAP-664 Closes ONAP-647 Change-Id: I8d1e57c0c66f1968925660fe47fa96a2a634c039 Signed-off-by: Jakub Dudycz Issue-ID: DCAEGEN2-601 --- .../veshv/main/ArgBasedServerConfiguration.kt | 22 +++++++++++----------- .../veshv/main/ArgBasedServerConfigurationTest.kt | 1 + 2 files changed, 12 insertions(+), 11 deletions(-) (limited to 'hv-collector-main/src') diff --git a/hv-collector-main/src/main/kotlin/org/onap/dcae/collectors/veshv/main/ArgBasedServerConfiguration.kt b/hv-collector-main/src/main/kotlin/org/onap/dcae/collectors/veshv/main/ArgBasedServerConfiguration.kt index a11fe3d4..d8ee244b 100644 --- a/hv-collector-main/src/main/kotlin/org/onap/dcae/collectors/veshv/main/ArgBasedServerConfiguration.kt +++ b/hv-collector-main/src/main/kotlin/org/onap/dcae/collectors/veshv/main/ArgBasedServerConfiguration.kt @@ -28,17 +28,6 @@ import org.onap.dcae.collectors.veshv.utils.commandline.ArgBasedConfiguration import org.onap.dcae.collectors.veshv.utils.commandline.CommandLineOption.* import java.time.Duration -internal object DefaultValues { - const val PORT = 6061 - const val CONSUL_FIRST_REQUEST_DELAY = 10L - const val CONSUL_REQUEST_INTERVAL = 5L - const val CONFIG_URL = "" - const val PRIVATE_KEY_FILE = "/etc/ves-hv/server.key" - const val CERT_FILE = "/etc/ves-hv/server.crt" - const val TRUST_CERT_FILE = "/etc/ves-hv/trust.crt" - const val IDLE_TIMEOUT_SEC = 60L -} - internal class ArgBasedServerConfiguration : ArgBasedConfiguration(DefaultParser()) { override val cmdLineOptionsList = listOf( LISTEN_PORT, @@ -92,4 +81,15 @@ internal class ArgBasedServerConfiguration : ArgBasedConfiguration