Package de.hybris.platform.jmx.mbeans
Interface MainCacheMBean
-
- All Known Implementing Classes:
MainCacheMBeanImpl
public interface MainCacheMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCache()clears the cache and the statistics.java.lang.IntegergetCurrentCacheSize()java.lang.IntegergetCurrentCacheSizeInPercent()java.lang.LonggetEntitiesAddCount()java.lang.LonggetEntitiesGetCount()java.lang.LonggetEntitiesMissCount()java.lang.LonggetEntitiesMissCountInPercent()java.lang.LonggetEntitiesRemoveCount()java.lang.IntegergetMaximumCacheSize()java.lang.IntegergetMaxReachedCacheSize()java.lang.IntegergetMaxReachedCacheSizeInPercent()java.util.Collection<java.lang.String>showCacheStatistics(int lowerBound, int upperBound)Returns a collection with the cache statistics.java.lang.StringstartCacheStatistics()Starts the collecting of the cache statistics.java.lang.StringstopCacheStatistics()Stops the collection of the cache statistics.
-
-
-
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
-
-