Class 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.
  • Constructor Details

    • RegionCacheMBeanImpl

      public RegionCacheMBeanImpl()
  • Method Details

    • getMaximumCacheSize

      @ManagedAttribute(description="The maximum number of cache entries.") public Long getMaximumCacheSize()
      Description copied from interface: RegionCacheMBean
      The maximum size of the cache.
      Specified by:
      getMaximumCacheSize in interface RegionCacheMBean
      Returns:
      max_size
    • getCurrentCacheSize

      @ManagedAttribute(description="Current amount of entries.") public Long getCurrentCacheSize()
      Description copied from interface: RegionCacheMBean
      The current size of the cache.
      Specified by:
      getCurrentCacheSize in interface RegionCacheMBean
      Returns:
      current_size
    • getCacheFillRatio

      @ManagedAttribute(description="Current size of the cache in percent, related to maximumCacheSize.") public Integer getCacheFillRatio()
      Description copied from interface: RegionCacheMBean
      The cache fill ratio of cache max size to current cache size.
      Specified by:
      getCacheFillRatio in interface RegionCacheMBean
      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: RegionCacheMBean
      The number of requests to the cache with no data found.
      Specified by:
      getMissCount in interface RegionCacheMBean
      Returns:
      miss_count
    • getHitCount

      @ManagedAttribute(description="The number of items existing in cache.") public Long getHitCount()
      Description copied from interface: RegionCacheMBean
      The number of requests where the cache had data.
      Specified by:
      getHitCount in interface RegionCacheMBean
      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: RegionCacheMBean
      The ratio of hits on the cache of total request count to cache hits.
      Specified by:
      getHitRatio in interface RegionCacheMBean
      Returns:
      hit ratio
    • getFetchCount

      @ManagedAttribute(description="The number of items existing in cache.") public Long getFetchCount()
      Description copied from interface: RegionCacheMBean
      The number of read operations to the cache.
      Specified by:
      getFetchCount in interface RegionCacheMBean
      Returns:
      number of reads
    • getInvalidationCount

      @ManagedAttribute(description="The number of items invalidated in cache.") public Long getInvalidationCount()
      Description copied from interface: RegionCacheMBean
      The number of invalidations to the cache (typically editing of items).
      Specified by:
      getInvalidationCount in interface RegionCacheMBean
      Returns:
      count of invalidations
    • getEvictionCount

      @ManagedAttribute(description="The number of items evicted from the cache.") public Long getEvictionCount()
      Description copied from interface: RegionCacheMBean
      The number of evicted items from the cache.
      Specified by:
      getEvictionCount in interface RegionCacheMBean
      Returns:
      count of evictions
    • setCacheRegion

      public void setCacheRegion(CacheRegion cacheRegion)
      Parameters:
      cacheRegion - the cacheRegion to set