X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fjmx%2Fmbeans%2Fshard%2FShardStatsMXBean.java;h=ac76891b69b70ff80d05d613ff477f57d61754e5;hp=12cea50e44cb744845d9243fb312e141b1e947db;hb=refs%2Fchanges%2F89%2F82189%2F3;hpb=2d62916cb1f4b4045f4fc38fbd313f8339f9ac67 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/shard/ShardStatsMXBean.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/shard/ShardStatsMXBean.java index 12cea50e44..ac76891b69 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/shard/ShardStatsMXBean.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/shard/ShardStatsMXBean.java @@ -1,86 +1,94 @@ +/* + * 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; -import org.opendaylight.controller.md.sal.common.util.jmx.ThreadExecutorStats; -import org.opendaylight.yangtools.util.concurrent.ListenerNotificationQueueStats; /** - * @author: syedbahm + * MXBean interface for shard stats. + * + * @author syedbahm */ public interface ShardStatsMXBean { - String getShardName(); + String getShardName(); - String getStatRetrievalTime(); + String getStatRetrievalTime(); - String getStatRetrievalError(); + String getStatRetrievalError(); - long getCommittedTransactionsCount(); + long getCommittedTransactionsCount(); - long getReadOnlyTransactionCount(); + long getReadOnlyTransactionCount(); - long getWriteOnlyTransactionCount(); + long getReadWriteTransactionCount(); - long getReadWriteTransactionCount(); + long getLastLogIndex(); - long getLastLogIndex(); + long getLastLogTerm(); - long getLastLogTerm(); + long getCurrentTerm(); - long getCurrentTerm(); + long getCommitIndex(); - long getCommitIndex(); + long getLastApplied(); - long getLastApplied(); + long getLastIndex(); - long getLastIndex(); + long getLastTerm(); - long getLastTerm(); + long getSnapshotIndex(); - long getSnapshotIndex(); + long getSnapshotTerm(); - long getSnapshotTerm(); + long getReplicatedToAllIndex(); - long getReplicatedToAllIndex(); + String getLastCommittedTransactionTime(); - String getLastCommittedTransactionTime(); + long getFailedTransactionsCount(); - long getFailedTransactionsCount(); + long getAbortTransactionsCount(); - long getAbortTransactionsCount(); + long getFailedReadTransactionsCount(); - long getFailedReadTransactionsCount(); + String getLeader(); - String getLeader(); + String getRaftState(); - String getRaftState(); + String getVotedFor(); - String getVotedFor(); + boolean isSnapshotCaptureInitiated(); - boolean isSnapshotCaptureInitiated(); + boolean isVoting(); - ThreadExecutorStats getDataStoreExecutorStats(); + void resetTransactionCounters(); - ThreadExecutorStats getNotificationMgrExecutorStats(); + long getInMemoryJournalDataSize(); - List getCurrentNotificationMgrListenerQueueStats(); + long getInMemoryJournalLogSize(); - int getMaxNotificationMgrListenerQueueSize(); + boolean getFollowerInitialSyncStatus(); - void resetTransactionCounters(); + List getFollowerInfo(); - long getInMemoryJournalDataSize(); + String getPeerAddresses(); - long getInMemoryJournalLogSize(); + String getPeerVotingStates(); - boolean getFollowerInitialSyncStatus(); + long getLeadershipChangeCount(); - List getFollowerInfo(); + String getLastLeadershipChangeTime(); - String getPeerAddresses(); + int getPendingTxCommitQueueSize(); - long getLeadershipChangeCount(); + int getTxCohortCacheSize(); - String getLastLeadershipChangeTime(); + void captureSnapshot(); }