+/*
+ * Copyright (c) 2014, 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard;
import java.util.List;
import org.opendaylight.controller.cluster.raft.client.messages.FollowerInfo;
/**
+ * MXBean interface for shard stats.
+ *
* @author: syedbahm
*/
public interface ShardStatsMXBean {
- String getShardName();
+ String getShardName();
+
+ String getStatRetrievalTime();
+
+ String getStatRetrievalError();
+
+ long getCommittedTransactionsCount();
+
+ long getReadOnlyTransactionCount();
+
+ long getWriteOnlyTransactionCount();
- String getStatRetrievalTime();
+ long getReadWriteTransactionCount();
- String getStatRetrievalError();
+ long getLastLogIndex();
- long getCommittedTransactionsCount();
+ long getLastLogTerm();
- long getReadOnlyTransactionCount();
+ long getCurrentTerm();
- long getWriteOnlyTransactionCount();
+ long getCommitIndex();
- long getReadWriteTransactionCount();
+ long getLastApplied();
- long getLastLogIndex();
+ long getLastIndex();
- long getLastLogTerm();
+ long getLastTerm();
- long getCurrentTerm();
+ long getSnapshotIndex();
- long getCommitIndex();
+ long getSnapshotTerm();
- long getLastApplied();
+ long getReplicatedToAllIndex();
- long getLastIndex();
+ String getLastCommittedTransactionTime();
- long getLastTerm();
+ long getFailedTransactionsCount();
- long getSnapshotIndex();
+ long getAbortTransactionsCount();
- long getSnapshotTerm();
+ long getFailedReadTransactionsCount();
- long getReplicatedToAllIndex();
+ String getLeader();
- String getLastCommittedTransactionTime();
+ String getRaftState();
- long getFailedTransactionsCount();
+ String getVotedFor();
- long getAbortTransactionsCount();
+ boolean isSnapshotCaptureInitiated();
- long getFailedReadTransactionsCount();
+ boolean isVoting();
- String getLeader();
+ void resetTransactionCounters();
- String getRaftState();
+ long getInMemoryJournalDataSize();
- String getVotedFor();
+ long getInMemoryJournalLogSize();
- boolean isSnapshotCaptureInitiated();
+ boolean getFollowerInitialSyncStatus();
- void resetTransactionCounters();
+ List<FollowerInfo> getFollowerInfo();
- long getInMemoryJournalDataSize();
+ String getPeerAddresses();
- long getInMemoryJournalLogSize();
+ String getPeerVotingStates();
- boolean getFollowerInitialSyncStatus();
+ long getLeadershipChangeCount();
- List<FollowerInfo> getFollowerInfo();
+ String getLastLeadershipChangeTime();
- String getPeerAddresses();
+ int getPendingTxCommitQueueSize();
- long getLeadershipChangeCount();
+ int getTxCohortCacheSize();
- String getLastLeadershipChangeTime();
+ void captureSnapshot();
}