Expose more information about a Shard via JMX
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / FollowerLogInformationImpl.java
index 6aa76508fc2323094a497895cad4d3d7a2bdd3d0..94f9a53a850ae22537fe0607b5a16a1328b12532 100644 (file)
@@ -29,10 +29,22 @@ public class FollowerLogInformationImpl implements FollowerLogInformation{
         return nextIndex.incrementAndGet();
     }
 
+    @Override public long decrNextIndex() {
+        return nextIndex.decrementAndGet();
+    }
+
+    @Override public void setNextIndex(long nextIndex) {
+        this.nextIndex.set(nextIndex);
+    }
+
     public long incrMatchIndex(){
         return matchIndex.incrementAndGet();
     }
 
+    @Override public void setMatchIndex(long matchIndex) {
+        this.matchIndex.set(matchIndex);
+    }
+
     public String getId() {
         return id;
     }