Add a private modifiers to command arguments in clustering-test-app 90/97490/2
authorDominik Vrbovsky <dominik.vrbovsky@pantheon.tech>
Tue, 14 Sep 2021 14:07:12 +0000 (16:07 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 15 Sep 2021 10:03:54 +0000 (10:03 +0000)
Change-Id: I29e188d39a7dc507c0f9f61f086e699522757dc5
Signed-off-by: Dominik Vrbovsky <dominik.vrbovsky@pantheon.tech>
18 files changed:
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/car/RegisterOwnershipCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/car/StressTestCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/car/UnregisterOwnershipCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/car/purchase/BuyCarCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/AddShardReplicaCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/CheckPublishNotificationsCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/RegisterBoundConstantCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/RegisterConstantCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/RegisterDefaultConstantCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/RegisterSingletonConstantCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/RemoveShardReplicaCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/ShutdownShardReplicaCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/StartPublishNotificationsCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/SubscribeYnlCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/UnregisterBoundConstantCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/UnsubscribeYnlCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/odl/mdsal/lowlevel/control/WriteTransactionsCommand.java
opendaylight/md-sal/samples/clustering-test-app/karaf-cli/src/main/java/org/opendaylight/clustering/it/karaf/cli/people/AddPersonCommand.java

index 60cc098..5af5cd6 100644 (file)
@@ -24,7 +24,7 @@ public class RegisterOwnershipCommand extends AbstractRpcAction {
     @Reference
     private RpcConsumerRegistry rpcService;
     @Argument(index = 0, name = "car-id", required = true)
-    String carId;
+    private String carId;
 
     @Override
     protected ListenableFuture<? extends RpcResult<?>> invokeRpc() {
index 6b9e64a..f3bf816 100644 (file)
@@ -26,9 +26,9 @@ public class StressTestCommand extends AbstractRpcAction {
     @Reference
     private RpcConsumerRegistry rpcService;
     @Argument(index = 0, name = "rate", required = true)
-    int rate;
+    private int rate;
     @Argument(index = 1, name = "count", required = true)
-    long count;
+    private long count;
 
     @Override
     protected ListenableFuture<? extends RpcResult<?>> invokeRpc() {
index e699139..bb8bf0e 100644 (file)
@@ -25,7 +25,7 @@ public class UnregisterOwnershipCommand extends AbstractRpcAction {
     @Reference
     private RpcConsumerRegistry rpcService;
     @Argument(index = 0, name = "car-id", required = true)
-    String carId;
+    private String carId;
 
     @Override
     protected ListenableFuture<? extends RpcResult<?>> invokeRpc() {
index f06d71f..3290f9d 100644 (file)
@@ -32,9 +32,9 @@ public class BuyCarCommand extends AbstractRpcAction {
     @Argument(index = 0, name = "person-ref", required = true)
     String personRef;
     @Argument(index = 1, name = "car-id", required = true)
-    CarId carId;
+    private CarId carId;
     @Argument(index = 2, name = "person-id", required = true)
-    PersonId personId;
+    private PersonId personId;
 
     @Override
     protected ListenableFuture<? extends RpcResult<?>> invokeRpc() {
index 9fc92a3..ff91053 100644 (file)
@@ -27,9 +27,9 @@ public class RegisterBoundConstantCommand extends AbstractRpcAction {
     @Reference
     private InstanceIdentifierSupport iidSupport;
     @Argument(index =  0, name = "context", required = true)
-    String context;
+    private String context;
     @Argument(index =  1, name = "constant", required = true)
-    String constant;
+    private String constant;
 
     @Override
     protected ListenableFuture<? extends RpcResult<?>> invokeRpc() {
index bf17708..68be7e3 100644 (file)
@@ -26,11 +26,11 @@ public class StartPublishNotificationsCommand extends AbstractRpcAction {
     @Reference
     private RpcConsumerRegistry rpcService;
     @Argument(index = 0, name = "id", required = true)
-    String id;
+    private String id;
     @Argument(index = 1, name = "seconds", required = true)
-    long seconds;
+    private long seconds;
     @Argument(index = 2, name = "notifications-per-second", required = true)
-    long notificationsPerSecond;
+    private long notificationsPerSecond;
 
     @Override
     protected ListenableFuture<? extends RpcResult<?>> invokeRpc() {
index 60288cd..ad90f87 100644 (file)
@@ -25,13 +25,13 @@ public class WriteTransactionsCommand extends AbstractRpcAction {
     @Reference
     private RpcConsumerRegistry rpcService;
     @Argument(index = 0, name = "id", required = true)
-    String id;
+    private String id;
     @Argument(index = 1, name = "seconds", required = true)
-    long seconds;
+    private long seconds;
     @Argument(index = 2, name = "trasactions-per-second", required = true)
-    long transactionsPerSecond;
+    private long transactionsPerSecond;
     @Argument(index = 3, name = "chained-transations", required = true)
-    boolean chainedTransactions;
+    private boolean chainedTransactions;
 
     @Override
     protected ListenableFuture<? extends RpcResult<?>> invokeRpc() {
index 037b122..b6697f5 100644 (file)
@@ -26,15 +26,15 @@ public class AddPersonCommand extends AbstractRpcAction {
     @Reference
     private RpcConsumerRegistry rpcService;
     @Argument(index = 0, name = "id", required = true)
-    PersonId id;
+    private PersonId id;
     @Argument(index = 1, name = "gender", required = true)
-    String gender;
+    private String gender;
     @Argument(index = 2, name = "age", required = true)
-    long age;
+    private long age;
     @Argument(index = 3, name = "address", required = true)
-    String address;
+    private String address;
     @Argument(index = 4, name = "contactNo", required = true)
-    String contactNo;
+    private String contactNo;
 
     @Override
     protected ListenableFuture<? extends RpcResult<?>> invokeRpc() {