com.atlassian.confluence.cache
Class CacheStatisticsHelper

java.lang.Object
  extended by com.atlassian.confluence.cache.CacheStatisticsHelper

public class CacheStatisticsHelper
extends Object

Provides utility methods useful for classes that implement the CacheStatistics interface.

Since:
v5.5

Constructor Summary
CacheStatisticsHelper()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheStatisticsHelper

public CacheStatisticsHelper()
Method Detail

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.