Class SizeStatisticImpl

java.lang.Object
org.apache.activemq.management.StatisticImpl
org.apache.activemq.management.SizeStatisticImpl
All Implemented Interfaces:
Resettable, Statistic

public class SizeStatisticImpl extends StatisticImpl
  • Constructor Details

  • Method Details

    • reset

      public void reset()
      Description copied from interface: Resettable
      Reset the statistic
      Specified by:
      reset in interface Resettable
      Overrides:
      reset in class StatisticImpl
    • getCount

      public long getCount()
    • addSize

      public void addSize(long size)
    • setTotalSize

      public void setTotalSize(long size)
      Reset the total size to the new value
      Parameters:
      size -
    • getMaxSize

      public long getMaxSize()
      Returns:
      the maximum size of any step
    • setMaxSize

      public void setMaxSize(long size)
    • getMinSize

      public long getMinSize()
      Returns:
      the minimum size of any step
    • setMinSize

      public void setMinSize(long size)
    • getTotalSize

      public long getTotalSize()
      Returns:
      the total size of all the steps added together
    • setCount

      public void setCount(long count)
    • getAverageSize

      public double getAverageSize()
      Returns:
      the average size calculated by dividing the total size by the number of counts
    • getAverageSizeExcludingMinMax

      public double getAverageSizeExcludingMinMax()
      Returns:
      the average size calculated by dividing the total size by the number of counts but excluding the minimum and maximum sizes.
    • getAveragePerSecond

      public double getAveragePerSecond()
      Returns:
      the average number of steps per second
    • getAveragePerSecondExcludingMinMax

      public double getAveragePerSecondExcludingMinMax()
      Returns:
      the average number of steps per second excluding the min & max values
    • getParent

      public SizeStatisticImpl getParent()
    • setParent

      public void setParent(SizeStatisticImpl parent)
    • appendFieldDescription

      protected void appendFieldDescription(StringBuffer buffer)
      Overrides:
      appendFieldDescription in class StatisticImpl