bdaf26aea097be9402c4e52520063662e609b021
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / jmx / mbeans / shard / ShardStatsMXBean.java
1 /*
2  * Copyright (c) 2014, 2015 Brocade Communications Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
10
11 import java.util.List;
12 import org.opendaylight.controller.cluster.raft.client.messages.FollowerInfo;
13
14 /**
15  * MXBean interface for shard stats.
16  *
17  * @author syedbahm
18  */
19 public interface ShardStatsMXBean {
20
21     String getShardName();
22
23     String getStatRetrievalTime();
24
25     String getStatRetrievalError();
26
27     long getCommittedTransactionsCount();
28
29     long getReadOnlyTransactionCount();
30
31     long getWriteOnlyTransactionCount();
32
33     long getReadWriteTransactionCount();
34
35     long getLastLogIndex();
36
37     long getLastLogTerm();
38
39     long getCurrentTerm();
40
41     long getCommitIndex();
42
43     long getLastApplied();
44
45     long getLastIndex();
46
47     long getLastTerm();
48
49     long getSnapshotIndex();
50
51     long getSnapshotTerm();
52
53     long getReplicatedToAllIndex();
54
55     String getLastCommittedTransactionTime();
56
57     long getFailedTransactionsCount();
58
59     long getAbortTransactionsCount();
60
61     long getFailedReadTransactionsCount();
62
63     String getLeader();
64
65     String getRaftState();
66
67     String getVotedFor();
68
69     boolean isSnapshotCaptureInitiated();
70
71     boolean isVoting();
72
73     void resetTransactionCounters();
74
75     long getInMemoryJournalDataSize();
76
77     long getInMemoryJournalLogSize();
78
79     boolean getFollowerInitialSyncStatus();
80
81     List<FollowerInfo> getFollowerInfo();
82
83     String getPeerAddresses();
84
85     String getPeerVotingStates();
86
87     long getLeadershipChangeCount();
88
89     String getLastLeadershipChangeTime();
90
91     int getPendingTxCommitQueueSize();
92
93     int getTxCohortCacheSize();
94
95     void captureSnapshot();
96 }