rpcbenchmark: final parameters 07/56907/2
authorStephen Kitt <skitt@redhat.com>
Thu, 11 May 2017 15:28:56 +0000 (17:28 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 15 May 2017 11:59:40 +0000 (11:59 +0000)
This automatically-generated patch flags all appropriate parameters as
final (including caught exceptions).

Change-Id: I47767df42c202d24a513670bab3af57749f4a1d7
Signed-off-by: Stephen Kitt <skitt@redhat.com>
benchmark/rpcbenchmark/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/rpcbenchmark/impl/rev141210/RpcbenchmarkModule.java
benchmark/rpcbenchmark/src/main/java/rpcbenchmark/impl/GlobalBindingRTCClient.java
benchmark/rpcbenchmark/src/main/java/rpcbenchmark/impl/GlobalBindingRTCServer.java
benchmark/rpcbenchmark/src/main/java/rpcbenchmark/impl/RoutedBindingRTClient.java
benchmark/rpcbenchmark/src/main/java/rpcbenchmark/impl/RpcbenchmarkProvider.java

index 01b39ad..6475d0c 100644 (file)
@@ -10,11 +10,11 @@ package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rpcbenc
 import rpcbenchmark.impl.RpcbenchmarkProvider;
 
 public class RpcbenchmarkModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rpcbenchmark.impl.rev141210.AbstractRpcbenchmarkModule {
-    public RpcbenchmarkModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
+    public RpcbenchmarkModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier, final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
         super(identifier, dependencyResolver);
     }
 
-    public RpcbenchmarkModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rpcbenchmark.impl.rev141210.RpcbenchmarkModule oldModule, java.lang.AutoCloseable oldInstance) {
+    public RpcbenchmarkModule(final org.opendaylight.controller.config.api.ModuleIdentifier identifier, final org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rpcbenchmark.impl.rev141210.RpcbenchmarkModule oldModule, final java.lang.AutoCloseable oldInstance) {
         super(identifier, dependencyResolver, oldModule, oldInstance);
     }
 
index dd2cad1..f03c064 100644 (file)
@@ -41,7 +41,7 @@ public class GlobalBindingRTCClient implements RTCClient {
         return rpcError.get();
     }
 
-    public GlobalBindingRTCClient(RpcConsumerRegistry registry, int inSize) {
+    public GlobalBindingRTCClient(final RpcConsumerRegistry registry, final int inSize) {
         if (registry != null) {
             this.service = registry.getRpcService(RpcbenchPayloadService.class);
         } else {
@@ -56,7 +56,7 @@ public class GlobalBindingRTCClient implements RTCClient {
         inVal = new GlobalRpcBenchInputBuilder().setPayload(listVals).build();
     }
 
-    public void runTest(int iterations) {
+    public void runTest(final int iterations) {
         int rpcOk = 0;
         int rpcError = 0;
 
index cdeeac6..7e97768 100644 (file)
@@ -35,7 +35,7 @@ public class GlobalBindingRTCServer implements RpcbenchPayloadService {
 
     @Override
     public Future<RpcResult<GlobalRpcBenchOutput>> globalRpcBench(
-            GlobalRpcBenchInput input) {
+            final GlobalRpcBenchInput input) {
         GlobalRpcBenchOutput output = new GlobalRpcBenchOutputBuilder(input).build();
         RpcResult<GlobalRpcBenchOutput> result = RpcResultBuilder.success(output).build();
         numRpcs++;
@@ -44,7 +44,7 @@ public class GlobalBindingRTCServer implements RpcbenchPayloadService {
 
     @Override
     public Future<RpcResult<RoutedRpcBenchOutput>> routedRpcBench(
-            RoutedRpcBenchInput input) {
+            final RoutedRpcBenchInput input) {
         RoutedRpcBenchOutput output = new RoutedRpcBenchOutputBuilder(input).build();
         RpcResult<RoutedRpcBenchOutput> result = RpcResultBuilder.success(output).build();
         numRpcs++;
index 201ed2d..1c44b98 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;
 
index b591c3f..a0cc1a1 100644 (file)
@@ -50,7 +50,7 @@ public class RpcbenchmarkProvider implements BindingAwareProvider, AutoCloseable
     private RpcProviderRegistry providerRegistry;
 
     @Override
-    public void onSessionInitiated(ProviderContext session) {
+    public void onSessionInitiated(final ProviderContext session) {
         LOG.debug("RpcbenchmarkProvider Session Initiated");
         consumerRegistry = session.getSALService(RpcConsumerRegistry.class);
         providerRegistry = session.getSALService(RpcProviderRegistry.class);
@@ -122,7 +122,7 @@ public class RpcbenchmarkProvider implements BindingAwareProvider, AutoCloseable
             executor.shutdown();
             try {
                 executor.awaitTermination(testTimeout, TimeUnit.MINUTES);
-            } catch (InterruptedException e) {
+            } catch (final InterruptedException e) {
                 LOG.error("Out of time: test did not finish within the {} min deadline ", testTimeout); 
             }
 

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.