Multiple clients for stresstool
[controller.git] / opendaylight / netconf / netconf-testtool / src / main / java / org / opendaylight / controller / netconf / test / tool / client / stress / Parameters.java
index 72031079019fca044f323a014b58844fce1e9b53..8a9a915a08d4ef4a62c5d9a5326a78f20b758873 100644 (file)
@@ -55,6 +55,9 @@ public class Parameters {
     @Arg(dest = "tcp-header")
     public String tcpHeader;
 
+    @Arg(dest = "thread-amount")
+    public int threadAmount;
+
     static ArgumentParser getParser() {
         final ArgumentParser parser = ArgumentParsers.newArgumentParser("netconf stress client");
 
@@ -130,6 +133,11 @@ public class Parameters {
                 .required(false)
                 .dest("tcp-header");
 
+        parser.addArgument("--thread-amount")
+                .type(Integer.class)
+                .setDefault(1)
+                .dest("thread-amount");
+
         // TODO add get-config option instead of edit + commit
         // TODO different edit config content