org.apache.jcs.engine.stats
Class Stats

java.lang.Object
  extended by org.apache.jcs.engine.stats.Stats
All Implemented Interfaces:
java.io.Serializable, IStats
Direct Known Subclasses:
CacheStats

public class Stats
extends java.lang.Object
implements IStats

Author:
aaronsm
See Also:
Serialized Form

Constructor Summary
Stats()
           
 
Method Summary
 IStatElement[] getStatElements()
          Return generic statistical or historical data.
 java.lang.String getTypeName()
          Get the type name, such as "LRU Memory Cache." No formal type is defined.
 void setStatElements(IStatElement[] stats)
          Set the generic statistical or historical data.
 void setTypeName(java.lang.String name)
          Set the type name, such as "LRU Memory Cache." No formal type is defined.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stats

public Stats()
Method Detail

getStatElements

public IStatElement[] getStatElements()
Description copied from interface: IStats
Return generic statistical or historical data.

Specified by:
getStatElements in interface IStats
Returns:
IStatElement[]

setStatElements

public void setStatElements(IStatElement[] stats)
Description copied from interface: IStats
Set the generic statistical or historical data.

Specified by:
setStatElements in interface IStats
Parameters:
stats -

getTypeName

public java.lang.String getTypeName()
Description copied from interface: IStats
Get the type name, such as "LRU Memory Cache." No formal type is defined.

Specified by:
getTypeName in interface IStats
Returns:
typeName

setTypeName

public void setTypeName(java.lang.String name)
Description copied from interface: IStats
Set the type name, such as "LRU Memory Cache." No formal type is defined. If we need formal types, we can use the cachetype param

Specified by:
setTypeName in interface IStats
Parameters:
name -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the stats in a readable string


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.