com.atlassian.confluence.cache
Class CacheStatisticsHelper

java.lang.Object
  extended by 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

Constructor Summary
CacheStatisticsHelper()
           
 
Method Summary
static int asPercentage(long numerator, long denominator)
           
static int calculateCapacityPercentage(long currentSize, long maxSize)
           
static java.lang.String formatSizeInMegabytes(FormatSettingsManager formatSettingsManager, long localHeapSizeInBytes)
           
static java.lang.String getDisplayableName(java.lang.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 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.