Package com.atlassian.confluence.cache
Class CacheStatisticsHelper
java.lang.Object
com.atlassian.confluence.cache.CacheStatisticsHelper
Provides utility methods useful for classes that implement the
CacheStatistics interface.- Since:
- 5.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intasPercentage(long numerator, long denominator) static intcalculateCapacityPercentage(long currentSize, long maxSize) static StringformatSizeInMegabytes(FormatSettingsManager formatSettingsManager, long localHeapSizeInBytes) static StringgetDisplayableName(String cacheName, I18NBean i18nBean)
-
Constructor Details
-
CacheStatisticsHelper
public CacheStatisticsHelper()
-
-
Method Details
-
formatSizeInMegabytes
public static String formatSizeInMegabytes(FormatSettingsManager formatSettingsManager, long localHeapSizeInBytes) -
getDisplayableName
-
asPercentage
public static int asPercentage(long numerator, long denominator) -
calculateCapacityPercentage
public static int calculateCapacityPercentage(long currentSize, long maxSize)
-