2 * Copyright (c) 2014, 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
11 import java.util.List;
12 import org.opendaylight.controller.cluster.raft.client.messages.FollowerInfo;
15 * MXBean interface for shard stats.
19 public interface ShardStatsMXBean {
21 String getShardName();
23 String getStatRetrievalTime();
25 String getStatRetrievalError();
27 long getCommittedTransactionsCount();
29 long getReadOnlyTransactionCount();
31 long getWriteOnlyTransactionCount();
33 long getReadWriteTransactionCount();
35 long getLastLogIndex();
37 long getLastLogTerm();
39 long getCurrentTerm();
41 long getCommitIndex();
43 long getLastApplied();
49 long getSnapshotIndex();
51 long getSnapshotTerm();
53 long getReplicatedToAllIndex();
55 String getLastCommittedTransactionTime();
57 long getFailedTransactionsCount();
59 long getAbortTransactionsCount();
61 long getFailedReadTransactionsCount();
65 String getRaftState();
69 boolean isSnapshotCaptureInitiated();
73 void resetTransactionCounters();
75 long getInMemoryJournalDataSize();
77 long getInMemoryJournalLogSize();
79 boolean getFollowerInitialSyncStatus();
81 List<FollowerInfo> getFollowerInfo();
83 String getPeerAddresses();
85 String getPeerVotingStates();
87 long getLeadershipChangeCount();
89 String getLastLeadershipChangeTime();
91 int getPendingTxCommitQueueSize();
93 int getTxCohortCacheSize();
95 void captureSnapshot();