Class MethodProfilingRule.PeriodRangeMap

  • Enclosing class:
    MethodProfilingRule

    private static class MethodProfilingRule.PeriodRangeMap
    extends java.lang.Object
    A simple class for storing execution sample period settings, allowing the sliding window to get the correct samples for each time slice.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PeriodRangeMap()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addSetting​(IQuantity settingTime, IQuantity setting)  
      (package private) IQuantity getSetting​(IQuantity timestamp)
      Gets the execution sample period that is in effect for the given timestamp.
      (package private) void sort()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PeriodRangeMap

        private PeriodRangeMap()
    • Method Detail

      • getSetting

        IQuantity getSetting​(IQuantity timestamp)
        Gets the execution sample period that is in effect for the given timestamp.
        Parameters:
        timestamp - the timestamp for which to find the given period setting
        Returns:
        an IQuantity representing the period setting for the period given
      • sort

        void sort()