X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fjmx%2Fmbeans%2Fshard%2FShardStatsMXBean.java;h=4e5130c0d5816d93b1827eeb4f1d0f5ca927fe3b;hb=9671168958de86fd34dd8dc9b5ca3a32b63df86a;hp=1c0c83b699b5fed424762aeab1c5bcaf15647eeb;hpb=3e77d4e181b0024936084e10d55ae0d7f285b5ad;p=controller.git 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 1c0c83b699..4e5130c0d5 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,82 +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; +import org.opendaylight.controller.cluster.mgmt.api.FollowerInfo; /** - * @author: syedbahm + * MXBean interface for shard stats. + * + * @author syedbahm */ public interface ShardStatsMXBean { - String getShardName(); + String getShardName(); + + String getStatRetrievalTime(); + + String getStatRetrievalError(); - String getStatRetrievalTime(); + long getCommittedTransactionsCount(); - String getStatRetrievalError(); + long getReadOnlyTransactionCount(); - long getCommittedTransactionsCount(); + long getReadWriteTransactionCount(); - long getReadOnlyTransactionCount(); + long getLastLogIndex(); - long getWriteOnlyTransactionCount(); + long getLastLogTerm(); - long getReadWriteTransactionCount(); + long getCurrentTerm(); - long getLastLogIndex(); + long getCommitIndex(); - long getLastLogTerm(); + long getLastApplied(); - long getCurrentTerm(); + long getLastIndex(); - long getCommitIndex(); + long getLastTerm(); - long getLastApplied(); + long getSnapshotIndex(); - long getLastIndex(); + long getSnapshotTerm(); - long getLastTerm(); + long getReplicatedToAllIndex(); - long getSnapshotIndex(); + String getLastCommittedTransactionTime(); - long getSnapshotTerm(); + long getFailedTransactionsCount(); - long getReplicatedToAllIndex(); + long getAbortTransactionsCount(); - String getLastCommittedTransactionTime(); + long getFailedReadTransactionsCount(); - long getFailedTransactionsCount(); + String getLeader(); - long getAbortTransactionsCount(); + String getRaftState(); - long getFailedReadTransactionsCount(); + String getVotedFor(); - String getLeader(); + boolean isSnapshotCaptureInitiated(); - String getRaftState(); + boolean isVoting(); - String getVotedFor(); + void resetTransactionCounters(); - boolean isSnapshotCaptureInitiated(); + long getInMemoryJournalDataSize(); - ThreadExecutorStats getDataStoreExecutorStats(); + long getInMemoryJournalLogSize(); - ThreadExecutorStats getNotificationMgrExecutorStats(); + boolean getFollowerInitialSyncStatus(); - List getCurrentNotificationMgrListenerQueueStats(); + List getFollowerInfo(); - int getMaxNotificationMgrListenerQueueSize(); + String getPeerAddresses(); - void resetTransactionCounters(); + String getPeerVotingStates(); - long getInMemoryJournalDataSize(); + long getLeadershipChangeCount(); - long getInMemoryJournalLogSize(); + String getLastLeadershipChangeTime(); - boolean getFollowerInitialSyncStatus(); + int getPendingTxCommitQueueSize(); - List getFollowerInfo(); + int getTxCohortCacheSize(); - String getPeerAddresses(); + void captureSnapshot(); }