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;
17 public interface ShardStatsMXBean {
19 String getShardName();
21 String getStatRetrievalTime();
23 String getStatRetrievalError();
25 long getCommittedTransactionsCount();
27 long getReadOnlyTransactionCount();
29 long getWriteOnlyTransactionCount();
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();
69 void resetTransactionCounters();
71 long getInMemoryJournalDataSize();
73 long getInMemoryJournalLogSize();
75 boolean getFollowerInitialSyncStatus();
77 List<FollowerInfo> getFollowerInfo();
79 String getPeerAddresses();
81 long getLeadershipChangeCount();
83 String getLastLeadershipChangeTime();
85 int getPendingTxCommitQueueSize();