From bb813bc67d165b02078e0d9aaa194d3232e170e5 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Fri, 8 Jun 2018 15:41:01 +0200 Subject: [PATCH] fix FollowerInfo @ConstructorProperties for valid ShardStatsMXBean JIRA: CONTROLLER-1835 Change-Id: I563105e8af79c0687cbb99444b34b540e80cbaa5 Signed-off-by: Michael Vorburger --- .../cluster/raft/client/messages/FollowerInfo.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/client/messages/FollowerInfo.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/client/messages/FollowerInfo.java index cb991e14ed..067a7d1c02 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/client/messages/FollowerInfo.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/client/messages/FollowerInfo.java @@ -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() { -- 2.36.6