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.mgmt.api.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 getReadWriteTransactionCount();
33 long getLastLogIndex();
35 long getLastLogTerm();
37 long getCurrentTerm();
39 long getCommitIndex();
41 long getLastApplied();
47 long getSnapshotIndex();
49 long getSnapshotTerm();
51 long getReplicatedToAllIndex();
53 String getLastCommittedTransactionTime();
55 long getFailedTransactionsCount();
57 long getAbortTransactionsCount();
59 long getFailedReadTransactionsCount();
63 String getRaftState();
67 boolean isSnapshotCaptureInitiated();
71 void resetTransactionCounters();
73 long getInMemoryJournalDataSize();
75 long getInMemoryJournalLogSize();
77 boolean getFollowerInitialSyncStatus();
79 List<FollowerInfo> getFollowerInfo();
81 String getPeerAddresses();
83 String getPeerVotingStates();
85 long getLeadershipChangeCount();
87 String getLastLeadershipChangeTime();
89 int getPendingTxCommitQueueSize();
91 int getTxCohortCacheSize();
93 void captureSnapshot();