package org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard; import java.util.List; import org.opendaylight.controller.md.sal.common.util.jmx.ThreadExecutorStats; import org.opendaylight.yangtools.util.concurrent.ListenerNotificationQueueStats; /** * @author: syedbahm */ public interface ShardStatsMXBean { String getShardName(); long getCommittedTransactionsCount(); long getReadOnlyTransactionCount(); long getWriteOnlyTransactionCount(); long getReadWriteTransactionCount(); long getLastLogIndex(); long getLastLogTerm(); long getCurrentTerm(); long getCommitIndex(); long getLastApplied(); String getLastCommittedTransactionTime(); long getFailedTransactionsCount(); long getAbortTransactionsCount(); long getFailedReadTransactionsCount(); String getLeader(); String getRaftState(); ThreadExecutorStats getDataStoreExecutorStats(); ThreadExecutorStats getNotificationMgrExecutorStats(); List getCurrentNotificationMgrListenerQueueStats(); int getMaxNotificationMgrListenerQueueSize(); void resetTransactionCounters(); long getDataSize(); }