GigaSpaces XAP 7.0 API

org.openspaces.admin.support
Class StatisticsUtils

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

public class StatisticsUtils
extends Object

Author:
kimchy

Constructor Summary
StatisticsUtils()
           
 
Method Summary
static double computePerc(int value, int max)
           
static double computePerc(long value, long max)
           
static double computePercByTime(long currentTime, long previousTime, long currentTimestamp, long previousTimestamp)
           
static double computePerSecond(long currentCount, long previousCount, long currentTimestamp, long previousTimestamp)
           
static double convertToGB(long bytes)
           
static double convertToKilobytes(long bytes)
           
static double convertToMB(long bytes)
           
static String formatPerc(double perc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsUtils

public StatisticsUtils()
Method Detail

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)

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)

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.