Package com.atlassian.confluence.cache
Class CacheStatisticsHelper
- java.lang.Object
-
- com.atlassian.confluence.cache.CacheStatisticsHelper
-
public class CacheStatisticsHelper extends Object
Provides utility methods useful for classes that implement theCacheStatistics
interface.- Since:
- 5.5
-
-
Constructor Summary
Constructors Constructor Description CacheStatisticsHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
asPercentage(long numerator, long denominator)
static int
calculateCapacityPercentage(long currentSize, long maxSize)
static String
formatSizeInMegabytes(FormatSettingsManager formatSettingsManager, long localHeapSizeInBytes)
static String
getDisplayableName(String cacheName, I18NBean i18nBean)
-
-
-
Method Detail
-
formatSizeInMegabytes
public static String formatSizeInMegabytes(FormatSettingsManager formatSettingsManager, long localHeapSizeInBytes)
-
asPercentage
public static int asPercentage(long numerator, long denominator)
-
calculateCapacityPercentage
public static int calculateCapacityPercentage(long currentSize, long maxSize)
-
-