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 the CacheStatistics interface.
- Since:
- v5.5
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheStatisticsHelper
public CacheStatisticsHelper()
formatSizeInMegabytes
public static String formatSizeInMegabytes(FormatSettingsManager formatSettingsManager,
long localHeapSizeInBytes)
getDisplayableName
public static String getDisplayableName(String cacheName,
I18NBean i18nBean)
asPercentage
public static int asPercentage(long numerator,
long denominator)
calculateCapacityPercentage
public static int calculateCapacityPercentage(long currentSize,
long maxSize)
Copyright © 2003–2015 Atlassian. All rights reserved.