Fix license header violations in sal-distributed-datastore
[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  * @author: syedbahm
16  */
17 public interface ShardStatsMXBean {
18
19    String getShardName();
20
21    String getStatRetrievalTime();
22
23    String getStatRetrievalError();
24
25    long getCommittedTransactionsCount();
26
27    long getReadOnlyTransactionCount();
28
29    long getWriteOnlyTransactionCount();
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    void resetTransactionCounters();
70
71    long getInMemoryJournalDataSize();
72
73    long getInMemoryJournalLogSize();
74
75    boolean getFollowerInitialSyncStatus();
76
77    List<FollowerInfo> getFollowerInfo();
78
79    String getPeerAddresses();
80
81    long getLeadershipChangeCount();
82
83    String getLastLeadershipChangeTime();
84
85    int getPendingTxCommitQueueSize();
86 }