1 package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
4 import org.opendaylight.controller.cluster.raft.client.messages.FollowerInfo;
5 import org.opendaylight.controller.md.sal.common.util.jmx.ThreadExecutorStats;
6 import org.opendaylight.yangtools.util.concurrent.ListenerNotificationQueueStats;
11 public interface ShardStatsMXBean {
13 String getShardName();
15 String getStatRetrievalTime();
17 String getStatRetrievalError();
19 long getCommittedTransactionsCount();
21 long getReadOnlyTransactionCount();
23 long getWriteOnlyTransactionCount();
25 long getReadWriteTransactionCount();
27 long getLastLogIndex();
29 long getLastLogTerm();
31 long getCurrentTerm();
33 long getCommitIndex();
35 long getLastApplied();
41 long getSnapshotIndex();
43 long getSnapshotTerm();
45 long getReplicatedToAllIndex();
47 String getLastCommittedTransactionTime();
49 long getFailedTransactionsCount();
51 long getAbortTransactionsCount();
53 long getFailedReadTransactionsCount();
57 String getRaftState();
61 boolean isSnapshotCaptureInitiated();
63 ThreadExecutorStats getDataStoreExecutorStats();
65 ThreadExecutorStats getNotificationMgrExecutorStats();
67 List<ListenerNotificationQueueStats> getCurrentNotificationMgrListenerQueueStats();
69 int getMaxNotificationMgrListenerQueueSize();
71 void resetTransactionCounters();
73 long getInMemoryJournalDataSize();
75 long getInMemoryJournalLogSize();
77 boolean getFollowerInitialSyncStatus();
79 List<FollowerInfo> getFollowerInfo();
81 String getPeerAddresses();