1c0c83b699b5fed424762aeab1c5bcaf15647eeb
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / jmx / mbeans / shard / ShardStatsMXBean.java
1 package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
2
3 import java.util.List;
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;
7
8 /**
9  * @author: syedbahm
10  */
11 public interface ShardStatsMXBean {
12
13    String getShardName();
14
15    String getStatRetrievalTime();
16
17    String getStatRetrievalError();
18
19    long getCommittedTransactionsCount();
20
21    long getReadOnlyTransactionCount();
22
23    long getWriteOnlyTransactionCount();
24
25    long getReadWriteTransactionCount();
26
27    long getLastLogIndex();
28
29    long getLastLogTerm();
30
31    long getCurrentTerm();
32
33    long getCommitIndex();
34
35    long getLastApplied();
36
37    long getLastIndex();
38
39    long getLastTerm();
40
41    long getSnapshotIndex();
42
43    long getSnapshotTerm();
44
45    long getReplicatedToAllIndex();
46
47    String getLastCommittedTransactionTime();
48
49    long getFailedTransactionsCount();
50
51    long getAbortTransactionsCount();
52
53    long getFailedReadTransactionsCount();
54
55    String getLeader();
56
57    String getRaftState();
58
59    String getVotedFor();
60
61    boolean isSnapshotCaptureInitiated();
62
63    ThreadExecutorStats getDataStoreExecutorStats();
64
65    ThreadExecutorStats getNotificationMgrExecutorStats();
66
67    List<ListenerNotificationQueueStats> getCurrentNotificationMgrListenerQueueStats();
68
69    int getMaxNotificationMgrListenerQueueSize();
70
71    void resetTransactionCounters();
72
73    long getInMemoryJournalDataSize();
74
75    long getInMemoryJournalLogSize();
76
77    boolean getFollowerInitialSyncStatus();
78
79    List<FollowerInfo> getFollowerInfo();
80
81    String getPeerAddresses();
82 }