fix FollowerInfo @ConstructorProperties for valid ShardStatsMXBean 95/72795/1
authorMichael Vorburger <vorburger@redhat.com>
Fri, 8 Jun 2018 13:41:01 +0000 (15:41 +0200)
committerMichael Vorburger <vorburger@redhat.com>
Fri, 8 Jun 2018 13:41:01 +0000 (15:41 +0200)
JIRA: CONTROLLER-1835
Change-Id: I563105e8af79c0687cbb99444b34b540e80cbaa5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/client/messages/FollowerInfo.java

index cb991e1..067a7d1 100644 (file)
@@ -22,15 +22,15 @@ public class FollowerInfo {
     private final String timeSinceLastActivity;
     private final boolean isVoting;
 
-    @ConstructorProperties({"id","nextIndex", "matchIndex", "isActive", "timeSinceLastActivity", "isVoting"})
-    public FollowerInfo(String id, long nextIndex, long matchIndex, boolean isActive, String timeSinceLastActivity,
-            boolean isVoting) {
+    @ConstructorProperties({"id","nextIndex", "matchIndex", "active", "timeSinceLastActivity", "voting"})
+    public FollowerInfo(String id, long nextIndex, long matchIndex, boolean active, String timeSinceLastActivity,
+            boolean voting) {
         this.id = id;
         this.nextIndex = nextIndex;
         this.matchIndex = matchIndex;
-        this.isActive = isActive;
+        this.isActive = active;
         this.timeSinceLastActivity = timeSinceLastActivity;
-        this.isVoting = isVoting;
+        this.isVoting = voting;
     }
 
     public String getId() {

©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.