public class CacheRegionStats extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
elementCountInMemory
in-memory element count
|
protected long |
elementCountOnDisk
on-disk element count
|
protected long |
elementCountTotal
total element count
|
protected long |
hitCount
hit count
|
protected double |
hitRatio
hit ratio
|
protected long |
missCount
miss count
|
protected long |
putCount
put count
|
protected String |
region
region name
|
protected String |
shortName
region short name
|
Constructor and Description |
---|
CacheRegionStats(CompositeData cData)
Construct a CacheRegionStats
|
CacheRegionStats(String region)
Construct a CacheRegionStats
|
CacheRegionStats(String region,
SecondLevelCacheStatistics src)
Construct a CacheRegionStats
|
Modifier and Type | Method and Description |
---|---|
protected double |
determineHitRatio() |
static CacheRegionStats[] |
fromTabularData(TabularData tabularData)
Re-build the CacheRegionStats from JMX tabular data
|
long |
getElementCountInMemory() |
long |
getElementCountOnDisk() |
long |
getElementCountTotal() |
long |
getHitCount() |
double |
getHitRatio() |
long |
getMissCount() |
long |
getPutCount() |
String |
getRegion() |
String |
getShortName() |
static TabularData |
newTabularDataInstance()
Convert our state into a JMX TabularData
|
CompositeData |
toCompositeData()
Convert our state into a JMX CompositeData
|
String |
toString() |
protected final String region
protected final String shortName
protected long hitCount
protected long missCount
protected long putCount
protected double hitRatio
protected long elementCountInMemory
protected long elementCountOnDisk
protected long elementCountTotal
public CacheRegionStats(String region)
region
- The region namepublic CacheRegionStats(String region, SecondLevelCacheStatistics src)
region
- The region namesrc
- The SecondLevelCacheStatistics referencepublic CacheRegionStats(CompositeData cData)
cData
- No ideaprotected double determineHitRatio()
public String getRegion()
public String getShortName()
public long getHitCount()
public long getMissCount()
public long getPutCount()
public double getHitRatio()
public long getElementCountInMemory()
public long getElementCountOnDisk()
public long getElementCountTotal()
public CompositeData toCompositeData()
public static TabularData newTabularDataInstance()
public static CacheRegionStats[] fromTabularData(TabularData tabularData)
tabularData
- The JMX tabular dataCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.