Class CacheRegionStats

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    AggregateCacheRegionStats

    public class CacheRegionStats
    extends java.lang.Object
    implements java.io.Serializable
    Author:
    gkeim
    See Also:
    Serialized Form
    • Field Detail

      • region

        protected final java.lang.String region
        region name
      • shortName

        protected final java.lang.String shortName
        region short name
      • hitCount

        protected long hitCount
        hit count
      • missCount

        protected long missCount
        miss count
      • putCount

        protected long putCount
        put count
      • hitRatio

        protected double hitRatio
        hit ratio
      • elementCountInMemory

        protected long elementCountInMemory
        in-memory element count
      • elementCountOnDisk

        protected long elementCountOnDisk
        on-disk element count
      • elementCountTotal

        protected long elementCountTotal
        total element count
    • Constructor Detail

      • CacheRegionStats

        public CacheRegionStats​(java.lang.String region)
        Parameters:
        region -
      • CacheRegionStats

        public CacheRegionStats​(java.lang.String region,
                                org.hibernate.stat.SecondLevelCacheStatistics src)
        Parameters:
        region -
        src -
      • CacheRegionStats

        public CacheRegionStats​(javax.management.openmbean.CompositeData cData)
        Parameters:
        cData -
    • Method Detail

      • determineHitRatio

        protected double determineHitRatio()
        Returns:
        hit ratio
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • getRegion

        public java.lang.String getRegion()
        Returns:
        region name
      • getShortName

        public java.lang.String getShortName()
        Returns:
        short name
      • getHitCount

        public long getHitCount()
        Returns:
        hit count
      • getMissCount

        public long getMissCount()
        Returns:
        miss count
      • getPutCount

        public long getPutCount()
        Returns:
        put count
      • getHitRatio

        public double getHitRatio()
        Returns:
        hit ratio
      • getElementCountInMemory

        public long getElementCountInMemory()
        Returns:
        in-memory element count
      • getElementCountOnDisk

        public long getElementCountOnDisk()
        Returns:
        on-disk element count
      • getElementCountTotal

        public long getElementCountTotal()
        Returns:
        total element count
      • toCompositeData

        public javax.management.openmbean.CompositeData toCompositeData()
        Returns:
        composite data
      • newTabularDataInstance

        public static javax.management.openmbean.TabularData newTabularDataInstance()
        Returns:
        tabular data
      • fromTabularData

        public static CacheRegionStats[] fromTabularData​(javax.management.openmbean.TabularData tabularData)
        Parameters:
        tabularData -
        Returns:
        array of region statistics