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, unregisterMBean
public 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()
CommitStatsMXBean
getTotalCommits
in interface CommitStatsMXBean
public String getLongestCommitTime()
CommitStatsMXBean
getLongestCommitTime
in interface CommitStatsMXBean
public String getShortestCommitTime()
CommitStatsMXBean
getShortestCommitTime
in interface CommitStatsMXBean
public String getAverageCommitTime()
CommitStatsMXBean
getAverageCommitTime
in interface CommitStatsMXBean
public void clearStats()
CommitStatsMXBean
clearStats
in interface CommitStatsMXBean
Copyright © 2019 OpenDaylight. All rights reserved.