Merge "BUG 2820 - LLDP refactor"
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / jmx / mbeans / shard / ShardStatsMXBean.java
index 8deb0ae6db9f17e13d12b76ecad40e5a0c050034..8115f79f3da5cbe337a43f312f932ac42c8d0aab 100644 (file)
@@ -1,9 +1,7 @@
 package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
 
 import java.util.List;
-
-import org.opendaylight.controller.md.sal.common.util.jmx.ThreadExecutorStats;
-import org.opendaylight.yangtools.util.concurrent.ListenerNotificationQueueStats;
+import org.opendaylight.controller.cluster.raft.client.messages.FollowerInfo;
 
 /**
  * @author: syedbahm
@@ -12,6 +10,10 @@ public interface ShardStatsMXBean {
 
    String getShardName();
 
+   String getStatRetrievalTime();
+
+   String getStatRetrievalError();
+
    long getCommittedTransactionsCount();
 
    long getReadOnlyTransactionCount();
@@ -30,6 +32,16 @@ public interface ShardStatsMXBean {
 
    long getLastApplied();
 
+   long getLastIndex();
+
+   long getLastTerm();
+
+   long getSnapshotIndex();
+
+   long getSnapshotTerm();
+
+   long getReplicatedToAllIndex();
+
    String getLastCommittedTransactionTime();
 
    long getFailedTransactionsCount();
@@ -42,13 +54,23 @@ public interface ShardStatsMXBean {
 
    String getRaftState();
 
-   ThreadExecutorStats getDataStoreExecutorStats();
+   String getVotedFor();
 
-   ThreadExecutorStats getNotificationMgrExecutorStats();
+   boolean isSnapshotCaptureInitiated();
 
-   List<ListenerNotificationQueueStats> getCurrentNotificationMgrListenerQueueStats();
+   void resetTransactionCounters();
 
-   int getMaxNotificationMgrListenerQueueSize();
+   long getInMemoryJournalDataSize();
 
-   void resetTransactionCounters();
+   long getInMemoryJournalLogSize();
+
+   boolean getFollowerInitialSyncStatus();
+
+   List<FollowerInfo> getFollowerInfo();
+
+   String getPeerAddresses();
+
+   long getLeadershipChangeCount();
+
+   String getLastLeadershipChangeTime();
 }