Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -9,7 +9,8 @@ import org.onlab.metrics.MetricsManager; | ... | @@ -9,7 +9,8 @@ import org.onlab.metrics.MetricsManager; |
9 | import com.codahale.metrics.Timer; | 9 | import com.codahale.metrics.Timer; |
10 | 10 | ||
11 | public final class SimpleClient { | 11 | public final class SimpleClient { |
12 | - private SimpleClient() {} | 12 | + private SimpleClient() { |
13 | + } | ||
13 | 14 | ||
14 | public static void main(String... args) throws Exception { | 15 | public static void main(String... args) throws Exception { |
15 | NettyMessagingService messaging = new TestNettyMessagingService(9081); | 16 | NettyMessagingService messaging = new TestNettyMessagingService(9081); |
... | @@ -29,7 +30,7 @@ public final class SimpleClient { | ... | @@ -29,7 +30,7 @@ public final class SimpleClient { |
29 | 30 | ||
30 | Timer sendAndRecieveTimer = metrics.createTimer(component, feature, "SendAndReceive"); | 31 | Timer sendAndRecieveTimer = metrics.createTimer(component, feature, "SendAndReceive"); |
31 | final int iterations = 1000000; | 32 | final int iterations = 1000000; |
32 | - for (int i=0; i < iterations; i++) { | 33 | + for (int i = 0; i < iterations; i++) { |
33 | Timer.Context context = sendAndRecieveTimer.time(); | 34 | Timer.Context context = sendAndRecieveTimer.time(); |
34 | Response<String> response = messaging | 35 | Response<String> response = messaging |
35 | .sendAndReceive(new Endpoint("localhost", 8080), "echo", | 36 | .sendAndReceive(new Endpoint("localhost", 8080), "echo", | ... | ... |
-
Please register or login to post a comment