Class AverageImpl

    • Field Detail

      • DEFAULT_MAX_BOUND

        public static final long DEFAULT_MAX_BOUND
        DEFAULT_UPPER_BOUND is maximum value Long can attain
        See Also:
        Constant Field Values
      • DEFAULT_VALUE

        public static final long DEFAULT_VALUE
        DEFAULT_LOWER_BOUND is same as DEFAULT_VALUE i.e. 0
      • DEFAULT_MIN_BOUND

        public static final long DEFAULT_MIN_BOUND
      • NEWLINE

        protected static final String NEWLINE
        DEFAULT_VALUE of any statistic is 0
    • Constructor Detail

      • AverageImpl

        public AverageImpl()
    • Method Detail

      • addDataPoint

        public void addDataPoint​(long value)
        Specified by:
        addDataPoint in interface Average
      • getAverage

        public double getAverage()
        Specified by:
        getAverage in interface Average
      • setReset

        public void setReset()
        Specified by:
        setReset in interface Average
      • getMin

        public long getMin()
        Specified by:
        getMin in interface Average
      • getMax

        public long getMax()
        Specified by:
        getMax in interface Average
      • getSize

        public long getSize()
        Specified by:
        getSize in interface Average
      • getHighWaterMark

        public long getHighWaterMark()
        Specified by:
        getHighWaterMark in interface org.glassfish.external.statistics.RangeStatistic
      • getLowWaterMark

        public long getLowWaterMark()
        Specified by:
        getLowWaterMark in interface org.glassfish.external.statistics.RangeStatistic
      • getCurrent

        public long getCurrent()
        Specified by:
        getCurrent in interface org.glassfish.external.statistics.RangeStatistic
      • getUnit

        public String getUnit()
        Specified by:
        getUnit in interface org.glassfish.external.statistics.Statistic
      • getStartTime

        public long getStartTime()
        Specified by:
        getStartTime in interface org.glassfish.external.statistics.Statistic
      • getTotal

        public long getTotal()
        Specified by:
        getTotal in interface Average
      • getLastSampleTime

        public long getLastSampleTime()
        Specified by:
        getLastSampleTime in interface org.glassfish.external.statistics.Statistic