Class CacheRegionStats
- java.lang.Object
-
- net.sf.ehcache.hibernate.management.impl.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 Summary
Fields Modifier and Type Field Description protected longelementCountInMemoryin-memory element countprotected longelementCountOnDiskon-disk element countprotected longelementCountTotaltotal element countprotected longhitCounthit countprotected doublehitRatiohit ratioprotected longmissCountmiss countprotected longputCountput countprotected java.lang.Stringregionregion nameprotected java.lang.StringshortNameregion short name
-
Constructor Summary
Constructors Constructor Description CacheRegionStats(java.lang.String region)CacheRegionStats(java.lang.String region, org.hibernate.stat.SecondLevelCacheStatistics src)CacheRegionStats(javax.management.openmbean.CompositeData cData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doubledetermineHitRatio()static CacheRegionStats[]fromTabularData(javax.management.openmbean.TabularData tabularData)longgetElementCountInMemory()longgetElementCountOnDisk()longgetElementCountTotal()longgetHitCount()doublegetHitRatio()longgetMissCount()longgetPutCount()java.lang.StringgetRegion()java.lang.StringgetShortName()static javax.management.openmbean.TabularDatanewTabularDataInstance()javax.management.openmbean.CompositeDatatoCompositeData()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.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
-
-