public class CommitStatsMXBeanImpl extends AbstractMXBean implements CommitStatsMXBean
BASE_JMX_PREFIX| Constructor and Description |
|---|
CommitStatsMXBeanImpl(@NonNull org.opendaylight.yangtools.util.DurationStatisticsTracker commitStatsTracker,
@NonNull String mbeantype)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearStats()
Clears the current stats to their defaults.
|
String |
getAverageCommitTime()
Returns a string representing average commit time duration, in the appropriate
scaled units.
|
String |
getLongestCommitTime()
Returns a string representing the time duration of the longest commit, in the appropriate
scaled units, along with the date/time that it occurred.
|
String |
getShortestCommitTime()
Returns a string representing the time duration of the shortest commit, in the appropriate
scaled units, along with the date/time that it occurred.
|
long |
getTotalCommits()
Returns the total number of commits that have occurred.
|
getMBeanCategory, getMBeanName, getMBeanType, register, registerMBean, unregister, unregisterMBeanpublic CommitStatsMXBeanImpl(@NonNull org.opendaylight.yangtools.util.DurationStatisticsTracker commitStatsTracker,
@NonNull String mbeantype)
commitStatsTracker - the DurationStatsTracker used to obtain the stats.mbeantype - mBeanType Used as the type property in the bean's ObjectName.public long getTotalCommits()
CommitStatsMXBeangetTotalCommits in interface CommitStatsMXBeanpublic String getLongestCommitTime()
CommitStatsMXBeangetLongestCommitTime in interface CommitStatsMXBeanpublic String getShortestCommitTime()
CommitStatsMXBeangetShortestCommitTime in interface CommitStatsMXBeanpublic String getAverageCommitTime()
CommitStatsMXBeangetAverageCommitTime in interface CommitStatsMXBeanpublic void clearStats()
CommitStatsMXBeanclearStats in interface CommitStatsMXBeanCopyright © 2019 OpenDaylight. All rights reserved.