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 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)
-
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)
-