rpcbenchmark: final parameters
[controller.git] / benchmark / rpcbenchmark / src / main / java / rpcbenchmark / impl / RoutedBindingRTClient.java
index c0e362bd4d6f8e89f6c5d08f6e766dfb7ac08829..1c44b98a3701d7d7620c309a5f7ec2af25fdb5cf 100644 (file)
@@ -43,7 +43,7 @@ public class RoutedBindingRTClient implements RTCClient {
         return rpcError.get();
     }
 
-    public RoutedBindingRTClient(RpcConsumerRegistry registry, int inSize, List<InstanceIdentifier<?>> routeIid) {
+    public RoutedBindingRTClient(final RpcConsumerRegistry registry, final int inSize, final List<InstanceIdentifier<?>> routeIid) {
         if (registry != null) {
             this.service = registry.getRpcService(RpcbenchPayloadService.class);
         } else {
@@ -63,7 +63,7 @@ public class RoutedBindingRTClient implements RTCClient {
 
     }
 
-    public void runTest(int iterations) {
+    public void runTest(final int iterations) {
         int rpcOk = 0;
         int rpcError = 0;
 
@@ -83,10 +83,7 @@ public class RoutedBindingRTClient implements RTCClient {
                         rpcError++;
                     }
                 }
-            } catch (InterruptedException e) {
-                rpcError++;
-                LOG.error("Execution failed: ", e);
-            } catch (ExecutionException e) {
+            } catch (InterruptedException | ExecutionException e) {
                 rpcError++;
                 LOG.error("Execution failed: ", e);
             }