Remove ScaleUtilParameters 54/99554/1
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 2 Feb 2022 09:56:37 +0000 (10:56 +0100)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 2 Feb 2022 09:58:45 +0000 (10:58 +0100)
Scale util is using TesttoolParameters to store its commnad line arguments.
ScaleUtilParameters is no more used.

JIRA: NETCONF-798
Change-Id: I4b7ccbf0535fc6fdb415594d1e7609ba847abb6b
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/scale/util/ScaleUtilParameters.java [deleted file]

diff --git a/netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/scale/util/ScaleUtilParameters.java b/netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/scale/util/ScaleUtilParameters.java
deleted file mode 100644 (file)
index cd8d546..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.netconf.test.tool.scale.util;
-
-import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
-import java.io.File;
-import net.sourceforge.argparse4j.ArgumentParsers;
-import net.sourceforge.argparse4j.annotation.Arg;
-import net.sourceforge.argparse4j.inf.ArgumentParser;
-import net.sourceforge.argparse4j.inf.ArgumentParserException;
-
-@SuppressFBWarnings("DM_EXIT")
-public class ScaleUtilParameters {
-
-    @Arg(dest = "distro-folder")
-    public File distroFolder;
-
-    static ArgumentParser getParser() {
-        final ArgumentParser parser = ArgumentParsers.newArgumentParser("scale test helper");
-
-        parser.addArgument("--distribution-folder")
-                .type(File.class)
-                .help("Directory where the karaf distribution for controller is located")
-                .dest("distro-folder");
-
-        return parser;
-    }
-
-    static ScaleUtilParameters parseArgs(final String[] args, final ArgumentParser parser) {
-        final ScaleUtilParameters parameters = new ScaleUtilParameters();
-        try {
-            parser.parseArgs(args, parameters);
-            return parameters;
-        } catch (ArgumentParserException e) {
-            parser.handleError(e);
-        }
-
-        System.exit(1);
-        return null;
-    }
-
-}