Class CacheRegionStatisticsImpl
- java.lang.Object
-
- org.hibernate.stat.internal.CacheRegionStatisticsImpl
-
- All Implemented Interfaces:
Serializable,CacheRegionStatistics
public class CacheRegionStatisticsImpl extends Object implements CacheRegionStatistics, Serializable
Second level cache statistics of a specific region- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.hibernate.stat.CacheRegionStatistics
NO_EXTENDED_STAT_SUPPORT_RETURN
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetElementCountInMemory()The number of elements currently in memory within the cache provider.longgetElementCountOnDisk()The number of elements currently stored to disk within the cache provider.longgetHitCount()The number of successful cache look-ups against the region since the last Statistics clearinglonggetMissCount()The number of unsuccessful cache look-ups against the region since the last Statistics clearinglonggetPutCount()The number of cache puts into the region since the last Statistics clearingStringgetRegionName()longgetSizeInMemory()The size that the in-memory elements take up within the cache provider.StringtoString()
-
-
-
Method Detail
-
getRegionName
public String getRegionName()
- Specified by:
getRegionNamein interfaceCacheRegionStatistics
-
getHitCount
public long getHitCount()
Description copied from interface:CacheRegionStatisticsThe number of successful cache look-ups against the region since the last Statistics clearing- Specified by:
getHitCountin interfaceCacheRegionStatistics
-
getMissCount
public long getMissCount()
Description copied from interface:CacheRegionStatisticsThe number of unsuccessful cache look-ups against the region since the last Statistics clearing- Specified by:
getMissCountin interfaceCacheRegionStatistics
-
getPutCount
public long getPutCount()
Description copied from interface:CacheRegionStatisticsThe number of cache puts into the region since the last Statistics clearing- Specified by:
getPutCountin interfaceCacheRegionStatistics
-
getElementCountInMemory
public long getElementCountInMemory()
Description copied from interface:CacheRegionStatisticsThe number of elements currently in memory within the cache provider.This is an optional value contingent upon the underlying cache provider providing extended stats support via
ExtendedStatisticsSupport. If the provider does not support extended stats,CacheRegionStatistics.NO_EXTENDED_STAT_SUPPORT_RETURNis returned instead.- Specified by:
getElementCountInMemoryin interfaceCacheRegionStatistics
-
getElementCountOnDisk
public long getElementCountOnDisk()
Description copied from interface:CacheRegionStatisticsThe number of elements currently stored to disk within the cache provider.This is an optional value contingent upon the underlying cache provider providing extended stats support via
ExtendedStatisticsSupport. If the provider does not support extended stats,CacheRegionStatistics.NO_EXTENDED_STAT_SUPPORT_RETURNis returned instead.- Specified by:
getElementCountOnDiskin interfaceCacheRegionStatistics
-
getSizeInMemory
public long getSizeInMemory()
Description copied from interface:CacheRegionStatisticsThe size that the in-memory elements take up within the cache provider.This is an optional value contingent upon the underlying cache provider providing extended stats support via
ExtendedStatisticsSupport. If the provider does not support extended stats,CacheRegionStatistics.NO_EXTENDED_STAT_SUPPORT_RETURNis returned instead.- Specified by:
getSizeInMemoryin interfaceCacheRegionStatistics
-
-