Top Description Fields Methods
org.hibernate.stat

public Interface CacheRegionStatistics

extends Serializable
Known Direct Subinterfaces
org.hibernate.stat.SecondLevelCacheStatistics
Known Direct Implementers
org.hibernate.stat.internal.CacheRegionStatisticsImpl
Imports
java.io.Serializable

Second level cache statistics of a specific region
Author
Gavin King

Field Summary

Modifier and TypeField and Description
public static final long
NO_EXTENDED_STAT_SUPPORT_RETURN

The value returned from getElementCountInMemory, getElementCountOnDisk() and getSizeInMemory() for cache providers that do not support such "extended" statistics.

Method Summary

Modifier and TypeMethod and Description
public long
getElementCountInMemory()

The number of elements currently in memory within the cache provider.

public long
getElementCountOnDisk()

The number of elements currently stored to disk within the cache provider.

public long
getHitCount()

The number of successful cache look-ups against the region since the last Statistics clearing

public long
getMissCount()

The number of unsuccessful cache look-ups against the region since the last Statistics clearing

public long
getPutCount()

The number of cache puts into the region since the last Statistics clearing

public String
public long
getSizeInMemory()

The size that the in-memory elements take up within the cache provider.

Field Detail

NO_EXTENDED_STAT_SUPPORT_RETURNback to summary
public static final long NO_EXTENDED_STAT_SUPPORT_RETURN

The value returned from getElementCountInMemory, getElementCountOnDisk() and getSizeInMemory() for cache providers that do not support such "extended" statistics.

Method Detail

getElementCountInMemoryback to summary
public long getElementCountInMemory()

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 org.hibernate.cache.spi.ExtendedStatisticsSupport. If the provider does not support extended stats, NO_EXTENDED_STAT_SUPPORT_RETURN is returned instead.

getElementCountOnDiskback to summary
public long getElementCountOnDisk()

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 org.hibernate.cache.spi.ExtendedStatisticsSupport. If the provider does not support extended stats, NO_EXTENDED_STAT_SUPPORT_RETURN is returned instead.

getHitCountback to summary
public long getHitCount()

The number of successful cache look-ups against the region since the last Statistics clearing

getMissCountback to summary
public long getMissCount()

The number of unsuccessful cache look-ups against the region since the last Statistics clearing

getPutCountback to summary
public long getPutCount()

The number of cache puts into the region since the last Statistics clearing

getRegionNameback to summary
public String getRegionName()
getSizeInMemoryback to summary
public long getSizeInMemory()

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 org.hibernate.cache.spi.ExtendedStatisticsSupport. If the provider does not support extended stats, NO_EXTENDED_STAT_SUPPORT_RETURN is returned instead.