Move FollowerInfo
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / jmx / mbeans / shard / ShardStatsMXBean.java
index ecc51b091746dba4064e1b232281664777db0e72..4e5130c0d5816d93b1827eeb4f1d0f5ca927fe3b 100644 (file)
@@ -9,81 +9,86 @@
 package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
 
 import java.util.List;
-import org.opendaylight.controller.cluster.raft.client.messages.FollowerInfo;
+import org.opendaylight.controller.cluster.mgmt.api.FollowerInfo;
 
 /**
- * @author: syedbahm
+ * MXBean interface for shard stats.
+ *
+ * @author syedbahm
  */
 public interface ShardStatsMXBean {
 
-   String getShardName();
+    String getShardName();
+
+    String getStatRetrievalTime();
 
-   String getStatRetrievalTime();
+    String getStatRetrievalError();
 
-   String getStatRetrievalError();
+    long getCommittedTransactionsCount();
 
-   long getCommittedTransactionsCount();
+    long getReadOnlyTransactionCount();
 
-   long getReadOnlyTransactionCount();
+    long getReadWriteTransactionCount();
 
-   long getWriteOnlyTransactionCount();
+    long getLastLogIndex();
 
-   long getReadWriteTransactionCount();
+    long getLastLogTerm();
 
-   long getLastLogIndex();
+    long getCurrentTerm();
 
-   long getLastLogTerm();
+    long getCommitIndex();
 
-   long getCurrentTerm();
+    long getLastApplied();
 
-   long getCommitIndex();
+    long getLastIndex();
 
-   long getLastApplied();
+    long getLastTerm();
 
-   long getLastIndex();
+    long getSnapshotIndex();
 
-   long getLastTerm();
+    long getSnapshotTerm();
 
-   long getSnapshotIndex();
+    long getReplicatedToAllIndex();
 
-   long getSnapshotTerm();
+    String getLastCommittedTransactionTime();
 
-   long getReplicatedToAllIndex();
+    long getFailedTransactionsCount();
 
-   String getLastCommittedTransactionTime();
+    long getAbortTransactionsCount();
 
-   long getFailedTransactionsCount();
+    long getFailedReadTransactionsCount();
 
-   long getAbortTransactionsCount();
+    String getLeader();
 
-   long getFailedReadTransactionsCount();
+    String getRaftState();
 
-   String getLeader();
+    String getVotedFor();
 
-   String getRaftState();
+    boolean isSnapshotCaptureInitiated();
 
-   String getVotedFor();
+    boolean isVoting();
 
-   boolean isSnapshotCaptureInitiated();
+    void resetTransactionCounters();
 
-   void resetTransactionCounters();
+    long getInMemoryJournalDataSize();
 
-   long getInMemoryJournalDataSize();
+    long getInMemoryJournalLogSize();
 
-   long getInMemoryJournalLogSize();
+    boolean getFollowerInitialSyncStatus();
 
-   boolean getFollowerInitialSyncStatus();
+    List<FollowerInfo> getFollowerInfo();
 
-   List<FollowerInfo> getFollowerInfo();
+    String getPeerAddresses();
 
-   String getPeerAddresses();
+    String getPeerVotingStates();
 
-   long getLeadershipChangeCount();
+    long getLeadershipChangeCount();
 
-   String getLastLeadershipChangeTime();
+    String getLastLeadershipChangeTime();
 
-   int getPendingTxCommitQueueSize();
+    int getPendingTxCommitQueueSize();
 
-   void captureSnapshot();
+    int getTxCohortCacheSize();
 
+    void captureSnapshot();
 }