Package de.hybris.platform.jmx.mbeans
Interface MainCacheMBean
- All Known Implementing Classes:
MainCacheMBeanImpl
public interface MainCacheMBean
-
Method Summary
Modifier and TypeMethodDescriptionvoidclears the cache and the statistics.showCacheStatistics(int lowerBound, int upperBound) Returns a collection with the cache statistics.Starts the collecting of the cache statistics.Stops the collection of the cache statistics.
-
Method Details
-
getMaximumCacheSize
Integer getMaximumCacheSize()- Returns:
- the maximum cache size.
-
getCurrentCacheSize
Integer getCurrentCacheSize()- Returns:
- the current cache size.
-
getCurrentCacheSizeInPercent
Integer getCurrentCacheSizeInPercent()- Returns:
- the current cache size as percent value (0 - 100). Related to maximum cahce size.
-
getMaxReachedCacheSize
Integer getMaxReachedCacheSize()- Returns:
- the maximum reached entities number of the cache. Related to
getCurrentCacheSize()
-
getMaxReachedCacheSizeInPercent
Integer getMaxReachedCacheSizeInPercent()- Returns:
- the maximum reached entities number in percent (0 - 100) (related to maximumCacheSize)
-
getEntitiesGetCount
Long getEntitiesGetCount()- Returns:
- how many entities where requested from the cache since last clear
-
getEntitiesAddCount
Long getEntitiesAddCount()- Returns:
- how many entities where added to the cache since creation or last clear
-
getEntitiesRemoveCount
Long getEntitiesRemoveCount()- Returns:
- how many entities where removed from the cache since last clear
-
getEntitiesMissCount
Long getEntitiesMissCount()- Returns:
- how many entities where requested but wasn't in the cache since creation or last clear
-
getEntitiesMissCountInPercent
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
String startCacheStatistics()Starts the collecting of the cache statistics.- Returns:
- a status information if this was successful or not.
-
stopCacheStatistics
String stopCacheStatistics()Stops the collection of the cache statistics.- Returns:
- a status information if this was successful or not.
-
showCacheStatistics
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
-