Make cds-mgmt-api a JPMS module
[controller.git] / opendaylight / md-sal / cds-mgmt-api / 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 package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
9
10 import java.util.List;
11 import javax.management.MXBean;
12 import org.opendaylight.controller.cluster.mgmt.api.FollowerInfo;
13
14 /**
15  * MXBean interface for shard stats.
16  *
17  * @author syedbahm
18  */
19 @MXBean
20 public interface ShardStatsMXBean {
21
22     String getShardName();
23
24     String getStatRetrievalTime();
25
26     String getStatRetrievalError();
27
28     long getCommittedTransactionsCount();
29
30     long getReadOnlyTransactionCount();
31
32     long getReadWriteTransactionCount();
33
34     long getLastLogIndex();
35
36     long getLastLogTerm();
37
38     long getCurrentTerm();
39
40     long getCommitIndex();
41
42     long getLastApplied();
43
44     long getLastIndex();
45
46     long getLastTerm();
47
48     long getSnapshotIndex();
49
50     long getSnapshotTerm();
51
52     long getReplicatedToAllIndex();
53
54     String getLastCommittedTransactionTime();
55
56     long getFailedTransactionsCount();
57
58     long getAbortTransactionsCount();
59
60     long getFailedReadTransactionsCount();
61
62     String getLeader();
63
64     String getRaftState();
65
66     String getVotedFor();
67
68     boolean isSnapshotCaptureInitiated();
69
70     boolean isVoting();
71
72     void resetTransactionCounters();
73
74     long getInMemoryJournalDataSize();
75
76     long getInMemoryJournalLogSize();
77
78     boolean getFollowerInitialSyncStatus();
79
80     List<FollowerInfo> getFollowerInfo();
81
82     String getPeerAddresses();
83
84     String getPeerVotingStates();
85
86     long getLeadershipChangeCount();
87
88     String getLastLeadershipChangeTime();
89
90     int getPendingTxCommitQueueSize();
91
92     int getTxCohortCacheSize();
93
94     void captureSnapshot();
95 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.