Class CommitStatsMXBeanImpl

  • All Implemented Interfaces:
    CommitStatsMXBean

    public class CommitStatsMXBeanImpl
    extends org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean
    implements CommitStatsMXBean
    Implementation of the CommitStatsMXBean interface.
    Author:
    Thomas Pantelis
    • Field Summary

      • Fields inherited from class org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean

        BASE_JMX_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      CommitStatsMXBeanImpl​(@NonNull org.opendaylight.yangtools.util.DurationStatisticsTracker commitStatsTracker, @NonNull String mbeantype)
      Constructor.
    • Constructor Detail

      • CommitStatsMXBeanImpl

        public CommitStatsMXBeanImpl​(@NonNull org.opendaylight.yangtools.util.DurationStatisticsTracker commitStatsTracker,
                                     @NonNull String mbeantype)
        Constructor.
        Parameters:
        commitStatsTracker - the DurationStatsTracker used to obtain the stats.
        mbeantype - mBeanType Used as the type property in the bean's ObjectName.
    • Method Detail

      • getTotalCommits

        public long getTotalCommits()
        Description copied from interface: CommitStatsMXBean
        Returns the total number of commits that have occurred.
        Specified by:
        getTotalCommits in interface CommitStatsMXBean
        Returns:
        Returns the total number of commits that have occurred
      • getLongestCommitTime

        public String getLongestCommitTime()
        Description copied from interface: CommitStatsMXBean
        Returns a string representing the time duration of the longest commit, in the appropriate scaled units, along with the date/time that it occurred.
        Specified by:
        getLongestCommitTime in interface CommitStatsMXBean
        Returns:
        string
      • getShortestCommitTime

        public String getShortestCommitTime()
        Description copied from interface: CommitStatsMXBean
        Returns a string representing the time duration of the shortest commit, in the appropriate scaled units, along with the date/time that it occurred.
        Specified by:
        getShortestCommitTime in interface CommitStatsMXBean
        Returns:
        string