Interface MainCacheMBean

    • Method Detail

      • getMaximumCacheSize

        java.lang.Integer getMaximumCacheSize()
        Returns:
        the maximum cache size.
      • getCurrentCacheSize

        java.lang.Integer getCurrentCacheSize()
        Returns:
        the current cache size.
      • getCurrentCacheSizeInPercent

        java.lang.Integer getCurrentCacheSizeInPercent()
        Returns:
        the current cache size as percent value (0 - 100). Related to maximum cahce size.
      • getMaxReachedCacheSize

        java.lang.Integer getMaxReachedCacheSize()
        Returns:
        the maximum reached entities number of the cache. Related to getCurrentCacheSize()
      • getMaxReachedCacheSizeInPercent

        java.lang.Integer getMaxReachedCacheSizeInPercent()
        Returns:
        the maximum reached entities number in percent (0 - 100) (related to maximumCacheSize)
      • getEntitiesGetCount

        java.lang.Long getEntitiesGetCount()
        Returns:
        how many entities where requested from the cache since last clear
      • getEntitiesAddCount

        java.lang.Long getEntitiesAddCount()
        Returns:
        how many entities where added to the cache since creation or last clear
      • getEntitiesRemoveCount

        java.lang.Long getEntitiesRemoveCount()
        Returns:
        how many entities where removed from the cache since last clear
      • getEntitiesMissCount

        java.lang.Long getEntitiesMissCount()
        Returns:
        how many entities where requested but wasn't in the cache since creation or last clear
      • getEntitiesMissCountInPercent

        java.lang.Long getEntitiesMissCountInPercent()
        Returns:
        in percent how many entities were requested but wasn't in the cache since creation or last clear.
      • clearCache

        void clearCache()
        clears the cache and the statistics.
      • startCacheStatistics

        java.lang.String startCacheStatistics()
        Starts the collecting of the cache statistics.
        Returns:
        a status information if this was successful or not.
      • stopCacheStatistics

        java.lang.String stopCacheStatistics()
        Stops the collection of the cache statistics.
        Returns:
        a status information if this was successful or not.
      • showCacheStatistics

        java.util.Collection<java.lang.String> showCacheStatistics​(int lowerBound,
                                                                   int upperBound)
        Returns a collection with the cache statistics.
        Parameters:
        upperBound - the upper bound for the returned collection. Each entry factor is equal or less.
        lowerBound - the lower bound the the returned collection. Each entry factor is greater or equal.
        Returns:
        a collection with the informations