Class StatisticsUtils

java.lang.Object
org.openspaces.admin.support.StatisticsUtils

public class StatisticsUtils extends Object
Author:
kimchy
  • Constructor Details

    • StatisticsUtils

      public StatisticsUtils()
  • Method Details

    • convertToKilobytes

      public static double convertToKilobytes(long bytes)
    • convertToMB

      public static double convertToMB(long bytes)
    • convertToGB

      public static double convertToGB(long bytes)
    • computePerc

      public static double computePerc(int value, int max)
    • computePerc

      public static double computePerc(long value, long max)
    • computePerc

      public static double computePerc(double percVal)
      Parameters:
      percVal - value between 0 and 100
      Returns:
      value between 0 and 1
    • computePercByTime

      public static double computePercByTime(long currentTime, long previousTime, long currentTimestamp, long previousTimestamp)
    • computePerSecond

      public static double computePerSecond(long currentCount, long previousCount, long currentTimestamp, long previousTimestamp)
    • formatPerc

      public static String formatPerc(double perc)