Class RangeStatisticImpl

    • Constructor Detail

      • RangeStatisticImpl

        public RangeStatisticImpl​(long curVal,
                                  long highMark,
                                  long lowMark,
                                  String name,
                                  String unit,
                                  String desc,
                                  long startTime,
                                  long sampleTime)
        Constructs an immutable instance of RangeStatistic.
        Parameters:
        curVal - The current value of this statistic
        highMark - The highest value of this statistic, since measurement started
        lowMark - The lowest value of this statistic, since measurement started
        name - The name of the statistic
        unit - The unit of measurement for this statistic
        desc - A brief description of the statistic
        startTime - Time in milliseconds at which the measurement was started
        sampleTime - Time at which the last measurement was done.
    • Method Detail

      • getCurrent

        public long getCurrent()
        Returns the current value of this statistic.
        Specified by:
        getCurrent in interface RangeStatistic
        Returns:
        long indicating the current value
      • getHighWaterMark

        public long getHighWaterMark()
        Returns the highest value of this statistic, since measurement started.
        Specified by:
        getHighWaterMark in interface RangeStatistic
        Returns:
        long indicating high water mark
      • getLowWaterMark

        public long getLowWaterMark()
        Returns the lowest value of this statistic, since measurement started.
        Specified by:
        getLowWaterMark in interface RangeStatistic
        Returns:
        long indicating low water mark