Remove java.desktop dependency
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / client / messages / FollowerInfo.java
index cb991e14ed8c7640a04d31712d5a0bebee714770..a2677de18b650e8821c48cac503d7de51d437b07 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.controller.cluster.raft.client.messages;
 
-import java.beans.ConstructorProperties;
+import javax.management.ConstructorParameters;
 
 /**
  * A bean class containing a snapshot of information for a follower returned from GetOnDemandRaftStats.
@@ -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) {
+    @ConstructorParameters({"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() {