2 * ============LICENSE_START=======================================================
3 * dcaegen2-collectors-veshv
4 * ================================================================================
5 * Copyright (C) 2018 NOKIA
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 package org.onap.dcae.collectors.veshv.utils.commandline
22 import org.apache.commons.cli.Option
25 enum class CommandLineOption(val option: Option) {
26 LISTEN_PORT(Option.builder("p")
27 .longOpt("listen-port")
32 CONSUL_CONFIG_URL(Option.builder("c")
33 .longOpt("config-url")
35 .desc("URL of ves configuration on consul")
38 VES_HV_PORT(Option.builder("p")
42 .desc("VesHvCollector port")
45 VES_HV_HOST(Option.builder("h")
49 .desc("VesHvCollector host")
52 MESSAGES_TO_SEND_AMOUNT(Option.builder("m")
55 .desc("Amount of messages to send")
58 PRIVATE_KEY_FILE(Option.builder("k")
59 .longOpt("private-key-file")
61 .desc("File with private key in PEM format")
64 CERT_FILE(Option.builder("e")
67 .desc("File with certificate bundle")
70 TRUST_CERT_FILE(Option.builder("t")
71 .longOpt("trust-cert-file")
73 .desc("File with trusted certificate bundle for trusting connections")