Class RegionCacheMBeanImpl
java.lang.Object
de.hybris.platform.jmx.mbeans.impl.JMXBindableTenantAwareObject
de.hybris.platform.jmx.mbeans.impl.AbstractJMXMBean
de.hybris.platform.jmx.mbeans.impl.RegionCacheMBeanImpl
- All Implemented Interfaces:
RegionCacheMBean,org.springframework.beans.factory.InitializingBean
@ManagedResource(description="Overview of one of the region caches of the hybris platform.")
public class RegionCacheMBeanImpl
extends AbstractJMXMBean
implements RegionCacheMBean
Implementation of an mbean to expose statistics of a regioncache in hybris.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jmx.mbeans.impl.AbstractJMXMBean
AbstractJMXMBean.TenantAwareExecutor<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe cache fill ratio of cache max size to current cache size.The current size of the cache.The number of evicted items from the cache.The number of read operations to the cache.The number of requests where the cache had data.The ratio of hits on the cache of total request count to cache hits.The number of invalidations to the cache (typically editing of items).The maximum size of the cache.The number of requests to the cache with no data found.voidsetCacheRegion(CacheRegion cacheRegion) Methods inherited from class de.hybris.platform.jmx.mbeans.impl.AbstractJMXMBean
activateTenant, afterPropertiesSet, deactivateTenant, getBeanInterface, getObjectName, isJNDIContextAware, setBeanInterface, setJmxPathMethods inherited from class de.hybris.platform.jmx.mbeans.impl.JMXBindableTenantAwareObject
getJmxDomain, getJmxPath, getObjectNameString, getTenantId, setTenant
-
Constructor Details
-
RegionCacheMBeanImpl
public RegionCacheMBeanImpl()
-
-
Method Details
-
getMaximumCacheSize
@ManagedAttribute(description="The maximum number of cache entries.") public Long getMaximumCacheSize()Description copied from interface:RegionCacheMBeanThe maximum size of the cache.- Specified by:
getMaximumCacheSizein interfaceRegionCacheMBean- Returns:
- max_size
-
getCurrentCacheSize
Description copied from interface:RegionCacheMBeanThe current size of the cache.- Specified by:
getCurrentCacheSizein interfaceRegionCacheMBean- Returns:
- current_size
-
getCacheFillRatio
@ManagedAttribute(description="Current size of the cache in percent, related to maximumCacheSize.") public Integer getCacheFillRatio()Description copied from interface:RegionCacheMBeanThe cache fill ratio of cache max size to current cache size.- Specified by:
getCacheFillRatioin interfaceRegionCacheMBean- Returns:
- percentage filled cache
-
getMissCount
@ManagedAttribute(description="The number of entities not existing in cache that were requested since a last clear.") public Long getMissCount()Description copied from interface:RegionCacheMBeanThe number of requests to the cache with no data found.- Specified by:
getMissCountin interfaceRegionCacheMBean- Returns:
- miss_count
-
getHitCount
Description copied from interface:RegionCacheMBeanThe number of requests where the cache had data.- Specified by:
getHitCountin interfaceRegionCacheMBean- Returns:
- cache hits
-
getHitRatio
@ManagedAttribute(description="The number of items which were requested that were in the cache in percent.") public Integer getHitRatio()Description copied from interface:RegionCacheMBeanThe ratio of hits on the cache of total request count to cache hits.- Specified by:
getHitRatioin interfaceRegionCacheMBean- Returns:
- hit ratio
-
getFetchCount
Description copied from interface:RegionCacheMBeanThe number of read operations to the cache.- Specified by:
getFetchCountin interfaceRegionCacheMBean- Returns:
- number of reads
-
getInvalidationCount
@ManagedAttribute(description="The number of items invalidated in cache.") public Long getInvalidationCount()Description copied from interface:RegionCacheMBeanThe number of invalidations to the cache (typically editing of items).- Specified by:
getInvalidationCountin interfaceRegionCacheMBean- Returns:
- count of invalidations
-
getEvictionCount
@ManagedAttribute(description="The number of items evicted from the cache.") public Long getEvictionCount()Description copied from interface:RegionCacheMBeanThe number of evicted items from the cache.- Specified by:
getEvictionCountin interfaceRegionCacheMBean- Returns:
- count of evictions
-
setCacheRegion
- Parameters:
cacheRegion- the cacheRegion to set
-