com.atlassian.confluence.cache
Class CacheStatisticsHelper
java.lang.Object
com.atlassian.confluence.cache.CacheStatisticsHelper
public class CacheStatisticsHelper
- extends java.lang.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 java.lang.String formatSizeInMegabytes(FormatSettingsManager formatSettingsManager,
long localHeapSizeInBytes)
getDisplayableName
public static java.lang.String getDisplayableName(java.lang.String cacheName,
I18NBean i18nBean)
asPercentage
public static int asPercentage(long numerator,
long denominator)
calculateCapacityPercentage
public static int calculateCapacityPercentage(long currentSize,
long maxSize)
Copyright © 2003-2014 Atlassian. All Rights Reserved.