2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
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=========================================================
21 package org.openecomp.sdc.dmaap;
23 import com.google.common.base.MoreObjects;
24 import org.kohsuke.args4j.Option;
26 public class CliArgs {
28 @Option(name="yml",aliases = {"-YML","YML","-yml","-YAML","YAML","-yaml"}, usage="mandatory arg. YAML filename", required=true)
29 private String yamlFilename;
31 @Option(name="path",aliases = {"-path","PATH","-PATH"}, usage="mandatory arg. path to the yaml file which contains topic config (publisher data + messages)", required=true)
32 private String yamlPath;
34 @Option(name="cr",aliases = {"CR","-cr","-CR"}, usage="optional arg. concurrent requests", required=false)
35 private String concurrentRequests;
37 @Option(name="notification",aliases = {"NOTIFICATION","-NOTIFICATION","-notification"}, usage="optional load dynamic messages", required=false)
38 private String notificationData;
40 public String getYamlPath() {
44 public String getYamlFilename() {
48 public void setYamlPath(String yamlPath) {
49 this.yamlPath = yamlPath;
53 public String getConcurrentRequests() {
54 return concurrentRequests;
57 public void setConcurrentRequests(String concurrentRequests) {
58 this.concurrentRequests = concurrentRequests;
61 public String getNotificationData() {
62 return notificationData;
66 public void setYamlFilename(String yamlFilename) {
67 this.yamlFilename = yamlFilename;
71 public String toString() {
72 return MoreObjects.toStringHelper(this)
73 .add("yamlPath", yamlPath)
74 .add("concurrentRequests", concurrentRequests)