public class StatisticsUtils extends Object
Constructor and Description |
---|
StatisticsUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
computePerc(double percVal) |
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) |
public static double convertToKilobytes(long bytes)
public static double convertToMB(long bytes)
public static double convertToGB(long bytes)
public static double computePerc(int value, int max)
public static double computePerc(long value, long max)
public static double computePerc(double percVal)
percVal
- value between 0 and 100public static double computePercByTime(long currentTime, long previousTime, long currentTimestamp, long previousTimestamp)
public static double computePerSecond(long currentCount, long previousCount, long currentTimestamp, long previousTimestamp)
public static String formatPerc(double perc)
Copyright © GigaSpaces.