Arguments defaults
diff --git a/apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClient.java b/apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClient.java
index c3fb273..dbdb3db 100644
--- a/apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClient.java
+++ b/apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClient.java
@@ -49,7 +49,6 @@
}
Timer sendAsyncTimer = metrics.createTimer(component, feature, "AsyncSender");
- Timer sendAndReceiveTimer = metrics.createTimer(component, feature, "SendAndReceive");
for (int i = 0; i < iterations; i++) {
Timer.Context context = sendAsyncTimer.time();
@@ -57,6 +56,7 @@
context.stop();
}
+ Timer sendAndReceiveTimer = metrics.createTimer(component, feature, "SendAndReceive");
for (int i = 0; i < iterations; i++) {
Timer.Context context = sendAndReceiveTimer.time();
Response response = messaging
diff --git a/apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClientCommand.java b/apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClientCommand.java
index 880d9fe..049e71f 100644
--- a/apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClientCommand.java
+++ b/apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClientCommand.java
@@ -14,9 +14,9 @@
public class SimpleNettyClientCommand extends AbstractShellCommand {
//FIXME: replace these arguments with proper ones needed for the test.
- @Argument(index = 0, name = "serverIp", description = "Server IP address",
+ @Argument(index = 0, name = "hostname", description = "Server Hostname",
required = false, multiValued = false)
- String serverIp = "127.0.0.1";
+ String host = "localhost";
@Argument(index = 3, name = "port", description = "Port",
required = false, multiValued = false)
@@ -28,12 +28,12 @@
@Argument(index = 2, name = "messageCount", description = "Message count",
required = false, multiValued = false)
- String messageCount = "100000";
+ String messageCount = "5000000";
@Override
protected void execute() {
try {
- startStandalone(new String[]{serverIp, port, warmup, messageCount});
+ startStandalone(new String[]{host, port, warmup, messageCount});
} catch (Exception e) {
error("Unable to start client %s", e);
}