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 long
getElementCountInMemory()
The number of elements currently in memory within the cache provider.long
getElementCountOnDisk()
The number of elements currently stored to disk within the cache provider.long
getHitCount()
The number of successful cache look-ups against the region since the last Statistics clearinglong
getMissCount()
The number of unsuccessful cache look-ups against the region since the last Statistics clearinglong
getPutCount()
The number of cache puts into the region since the last Statistics clearingString
getRegionName()
long
getSizeInMemory()
The size that the in-memory elements take up within the cache provider.String
toString()
-
-
-
Method Detail
-
getRegionName
public String getRegionName()
- Specified by:
getRegionName
in interfaceCacheRegionStatistics
-
getHitCount
public long getHitCount()
Description copied from interface:CacheRegionStatistics
The number of successful cache look-ups against the region since the last Statistics clearing- Specified by:
getHitCount
in interfaceCacheRegionStatistics
-
getMissCount
public long getMissCount()
Description copied from interface:CacheRegionStatistics
The number of unsuccessful cache look-ups against the region since the last Statistics clearing- Specified by:
getMissCount
in interfaceCacheRegionStatistics
-
getPutCount
public long getPutCount()
Description copied from interface:CacheRegionStatistics
The number of cache puts into the region since the last Statistics clearing- Specified by:
getPutCount
in interfaceCacheRegionStatistics
-
getElementCountInMemory
public long getElementCountInMemory()
Description copied from interface:CacheRegionStatistics
The 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_RETURN
is returned instead.- Specified by:
getElementCountInMemory
in interfaceCacheRegionStatistics
-
getElementCountOnDisk
public long getElementCountOnDisk()
Description copied from interface:CacheRegionStatistics
The 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_RETURN
is returned instead.- Specified by:
getElementCountOnDisk
in interfaceCacheRegionStatistics
-
getSizeInMemory
public long getSizeInMemory()
Description copied from interface:CacheRegionStatistics
The 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_RETURN
is returned instead.- Specified by:
getSizeInMemory
in interfaceCacheRegionStatistics
-
-