4e5130c0d5816d93b1827eeb4f1d0f5ca927fe3b
[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.mgmt.api.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 getReadWriteTransactionCount();
32
33     long getLastLogIndex();
34
35     long getLastLogTerm();
36
37     long getCurrentTerm();
38
39     long getCommitIndex();
40
41     long getLastApplied();
42
43     long getLastIndex();
44
45     long getLastTerm();
46
47     long getSnapshotIndex();
48
49     long getSnapshotTerm();
50
51     long getReplicatedToAllIndex();
52
53     String getLastCommittedTransactionTime();
54
55     long getFailedTransactionsCount();
56
57     long getAbortTransactionsCount();
58
59     long getFailedReadTransactionsCount();
60
61     String getLeader();
62
63     String getRaftState();
64
65     String getVotedFor();
66
67     boolean isSnapshotCaptureInitiated();
68
69     boolean isVoting();
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
83     String getPeerVotingStates();
84
85     long getLeadershipChangeCount();
86
87     String getLastLeadershipChangeTime();
88
89     int getPendingTxCommitQueueSize();
90
91     int getTxCohortCacheSize();
92
93     void captureSnapshot();
94 }