Class CacheStatisticsHelper


  • public class CacheStatisticsHelper
    extends Object
    Provides utility methods useful for classes that implement the CacheStatistics interface.
    Since:
    5.5
    • 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)