org.apache.jcs.engine.stats
Class CacheStats
java.lang.Object
org.apache.jcs.engine.stats.Stats
org.apache.jcs.engine.stats.CacheStats
- All Implemented Interfaces:
- ICacheStats, IStats, java.io.Serializable
- public class CacheStats
- extends Stats
- implements ICacheStats
This class stores cache historical and statistics data for a region.
Only the composite cache knows what the hit count across all auxiliaries is.
- Author:
- aaronsm
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CacheStats
public CacheStats()
getRegionName
public java.lang.String getRegionName()
- Description copied from interface:
ICacheStats
- Stats are for a region, though auxiliary data may be for more.
- Specified by:
getRegionName
in interface ICacheStats
- Returns:
- The region name
setRegionName
public void setRegionName(java.lang.String name)
- Specified by:
setRegionName
in interface ICacheStats
- Parameters:
name
-
getAuxiliaryCacheStats
public IStats[] getAuxiliaryCacheStats()
- Specified by:
getAuxiliaryCacheStats
in interface ICacheStats
- Returns:
setAuxiliaryCacheStats
public void setAuxiliaryCacheStats(IStats[] stats)
- Specified by:
setAuxiliaryCacheStats
in interface ICacheStats
- Parameters:
stats
-
getStatElements
public IStatElement[] getStatElements()
- This returns data about the auxiliaries, such as hit count. Only the
composite cache knows what the hit count across all auxiliaries is.
- Specified by:
getStatElements
in interface IStats
- Overrides:
getStatElements
in class Stats
setStatElements
public void setStatElements(IStatElement[] stats)
- Description copied from interface:
IStats
- Set the generic statistical or historical data.
- Specified by:
setStatElements
in interface IStats
- Overrides:
setStatElements
in class Stats
toString
public java.lang.String toString()
- Overrides:
toString
in class Stats
Copyright © 2002-2005 Apache Software Foundation. All Rights Reserved.