Class CommitStatsMXBeanImpl

    • Constructor Detail

      • CommitStatsMXBeanImpl

        public CommitStatsMXBeanImpl​(@NonNull 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