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 Constructor Description RegionCacheMBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetCacheFillRatio()The cache fill ratio of cache max size to current cache size.java.lang.LonggetCurrentCacheSize()The current size of the cache.java.lang.LonggetEvictionCount()The number of evicted items from the cache.java.lang.LonggetFetchCount()The number of read operations to the cache.java.lang.LonggetHitCount()The number of requests where the cache had data.java.lang.IntegergetHitRatio()The ratio of hits on the cache of total request count to cache hits.java.lang.LonggetInvalidationCount()The number of invalidations to the cache (typically editing of items).java.lang.LonggetMaximumCacheSize()The maximum size of the cache.java.lang.LonggetMissCount()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, setJmxPath
-
Methods inherited from class de.hybris.platform.jmx.mbeans.impl.JMXBindableTenantAwareObject
getJmxDomain, getJmxPath, getObjectNameString, getTenantId, setTenant
-
-
-
-
Method Detail
-
getMaximumCacheSize
@ManagedAttribute(description="The maximum number of cache entries.") public java.lang.Long getMaximumCacheSize()
Description copied from interface:RegionCacheMBeanThe maximum size of the cache.- Specified by:
getMaximumCacheSizein interfaceRegionCacheMBean- Returns:
- max_size
-
getCurrentCacheSize
@ManagedAttribute(description="Current amount of entries.") public java.lang.Long 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 java.lang.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 java.lang.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
@ManagedAttribute(description="The number of items existing in cache.") public java.lang.Long 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 java.lang.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
@ManagedAttribute(description="The number of items existing in cache.") public java.lang.Long 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 java.lang.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 java.lang.Long getEvictionCount()
Description copied from interface:RegionCacheMBeanThe number of evicted items from the cache.- Specified by:
getEvictionCountin interfaceRegionCacheMBean- Returns:
- count of evictions
-
setCacheRegion
public void setCacheRegion(CacheRegion cacheRegion)
- Parameters:
cacheRegion- the cacheRegion to set
-
-