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
8 package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
10 import java.util.List;
11 import javax.management.MXBean;
12 import org.opendaylight.controller.cluster.mgmt.api.FollowerInfo;
15 * MXBean interface for shard stats.
20 public interface ShardStatsMXBean {
22 String getShardName();
24 String getStatRetrievalTime();
26 String getStatRetrievalError();
28 long getCommittedTransactionsCount();
30 long getReadOnlyTransactionCount();
32 long getReadWriteTransactionCount();
34 long getLastLogIndex();
36 long getLastLogTerm();
38 long getCurrentTerm();
40 long getCommitIndex();
42 long getLastApplied();
48 long getSnapshotIndex();
50 long getSnapshotTerm();
52 long getReplicatedToAllIndex();
54 String getLastCommittedTransactionTime();
56 long getFailedTransactionsCount();
58 long getAbortTransactionsCount();
60 long getFailedReadTransactionsCount();
64 String getRaftState();
68 boolean isSnapshotCaptureInitiated();
72 void resetTransactionCounters();
74 long getInMemoryJournalDataSize();
76 long getInMemoryJournalLogSize();
78 boolean getFollowerInitialSyncStatus();
80 List<FollowerInfo> getFollowerInfo();
82 String getPeerAddresses();
84 String getPeerVotingStates();
86 long getLeadershipChangeCount();
88 String getLastLeadershipChangeTime();
90 int getPendingTxCommitQueueSize();
92 int getTxCohortCacheSize();
94 void captureSnapshot();