Class ShardStats
- java.lang.Object
-
- org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean
-
- org.opendaylight.controller.cluster.datastore.jmx.mbeans.shard.ShardStats
-
- All Implemented Interfaces:
ShardStatsMXBean
public class ShardStats extends org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean implements ShardStatsMXBean
Maintains statistics for a shard.- Author:
- Basheeruddin syedbahm@cisco.com
-
-
Field Summary
Fields Modifier and Type Field Description static StringJMX_CATEGORY_SHARD
-
Constructor Summary
Constructors Constructor Description ShardStats(String shardName, String mxBeanType, @Nullable Shard shard)
-
Method Summary
-
-
-
Field Detail
-
JMX_CATEGORY_SHARD
public static final String JMX_CATEGORY_SHARD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getShardName
public String getShardName()
- Specified by:
getShardNamein interfaceShardStatsMXBean
-
getCommittedTransactionsCount
public long getCommittedTransactionsCount()
- Specified by:
getCommittedTransactionsCountin interfaceShardStatsMXBean
-
getLeader
public String getLeader()
- Specified by:
getLeaderin interfaceShardStatsMXBean
-
getRaftState
public String getRaftState()
- Specified by:
getRaftStatein interfaceShardStatsMXBean
-
getReadOnlyTransactionCount
public long getReadOnlyTransactionCount()
- Specified by:
getReadOnlyTransactionCountin interfaceShardStatsMXBean
-
getReadWriteTransactionCount
public long getReadWriteTransactionCount()
- Specified by:
getReadWriteTransactionCountin interfaceShardStatsMXBean
-
getLastLogIndex
public long getLastLogIndex()
- Specified by:
getLastLogIndexin interfaceShardStatsMXBean
-
getLastLogTerm
public long getLastLogTerm()
- Specified by:
getLastLogTermin interfaceShardStatsMXBean
-
getCurrentTerm
public long getCurrentTerm()
- Specified by:
getCurrentTermin interfaceShardStatsMXBean
-
getCommitIndex
public long getCommitIndex()
- Specified by:
getCommitIndexin interfaceShardStatsMXBean
-
getLastApplied
public long getLastApplied()
- Specified by:
getLastAppliedin interfaceShardStatsMXBean
-
getLastIndex
public long getLastIndex()
- Specified by:
getLastIndexin interfaceShardStatsMXBean
-
getLastTerm
public long getLastTerm()
- Specified by:
getLastTermin interfaceShardStatsMXBean
-
getSnapshotIndex
public long getSnapshotIndex()
- Specified by:
getSnapshotIndexin interfaceShardStatsMXBean
-
getSnapshotTerm
public long getSnapshotTerm()
- Specified by:
getSnapshotTermin interfaceShardStatsMXBean
-
getReplicatedToAllIndex
public long getReplicatedToAllIndex()
- Specified by:
getReplicatedToAllIndexin interfaceShardStatsMXBean
-
getVotedFor
public String getVotedFor()
- Specified by:
getVotedForin interfaceShardStatsMXBean
-
isVoting
public boolean isVoting()
- Specified by:
isVotingin interfaceShardStatsMXBean
-
getPeerVotingStates
public String getPeerVotingStates()
- Specified by:
getPeerVotingStatesin interfaceShardStatsMXBean
-
isSnapshotCaptureInitiated
public boolean isSnapshotCaptureInitiated()
- Specified by:
isSnapshotCaptureInitiatedin interfaceShardStatsMXBean
-
getLastCommittedTransactionTime
public String getLastCommittedTransactionTime()
- Specified by:
getLastCommittedTransactionTimein interfaceShardStatsMXBean
-
getFailedTransactionsCount
public long getFailedTransactionsCount()
- Specified by:
getFailedTransactionsCountin interfaceShardStatsMXBean
-
getFailedReadTransactionsCount
public long getFailedReadTransactionsCount()
- Specified by:
getFailedReadTransactionsCountin interfaceShardStatsMXBean
-
getAbortTransactionsCount
public long getAbortTransactionsCount()
- Specified by:
getAbortTransactionsCountin interfaceShardStatsMXBean
-
incrementCommittedTransactionCount
public long incrementCommittedTransactionCount()
-
incrementReadOnlyTransactionCount
public long incrementReadOnlyTransactionCount()
-
incrementReadWriteTransactionCount
public long incrementReadWriteTransactionCount()
-
incrementFailedTransactionsCount
public long incrementFailedTransactionsCount()
-
incrementFailedReadTransactionsCount
public long incrementFailedReadTransactionsCount()
-
incrementAbortTransactionsCount
public long incrementAbortTransactionsCount()
-
setLastCommittedTransactionTime
public void setLastCommittedTransactionTime(long lastCommittedTransactionTime)
-
getInMemoryJournalDataSize
public long getInMemoryJournalDataSize()
- Specified by:
getInMemoryJournalDataSizein interfaceShardStatsMXBean
-
getInMemoryJournalLogSize
public long getInMemoryJournalLogSize()
- Specified by:
getInMemoryJournalLogSizein interfaceShardStatsMXBean
-
resetTransactionCounters
public void resetTransactionCounters()
Resets the counters related to transactions.- Specified by:
resetTransactionCountersin interfaceShardStatsMXBean
-
setFollowerInitialSyncStatus
public void setFollowerInitialSyncStatus(boolean followerInitialSyncStatus)
-
getFollowerInitialSyncStatus
public boolean getFollowerInitialSyncStatus()
- Specified by:
getFollowerInitialSyncStatusin interfaceShardStatsMXBean
-
getFollowerInfo
public List<org.opendaylight.controller.cluster.raft.client.messages.FollowerInfo> getFollowerInfo()
- Specified by:
getFollowerInfoin interfaceShardStatsMXBean
-
getPeerAddresses
public String getPeerAddresses()
- Specified by:
getPeerAddressesin interfaceShardStatsMXBean
-
getStatRetrievalTime
public String getStatRetrievalTime()
- Specified by:
getStatRetrievalTimein interfaceShardStatsMXBean
-
getStatRetrievalError
public String getStatRetrievalError()
- Specified by:
getStatRetrievalErrorin interfaceShardStatsMXBean
-
getLeadershipChangeCount
public long getLeadershipChangeCount()
- Specified by:
getLeadershipChangeCountin interfaceShardStatsMXBean
-
incrementLeadershipChangeCount
public void incrementLeadershipChangeCount()
-
getLastLeadershipChangeTime
public String getLastLeadershipChangeTime()
- Specified by:
getLastLeadershipChangeTimein interfaceShardStatsMXBean
-
getPendingTxCommitQueueSize
public int getPendingTxCommitQueueSize()
- Specified by:
getPendingTxCommitQueueSizein interfaceShardStatsMXBean
-
getTxCohortCacheSize
public int getTxCohortCacheSize()
- Specified by:
getTxCohortCacheSizein interfaceShardStatsMXBean
-
captureSnapshot
public void captureSnapshot()
- Specified by:
captureSnapshotin interfaceShardStatsMXBean
-
-