edu.internet2.middleware.grouper.cache
Class EhcacheStats

java.lang.Object
  extended by edu.internet2.middleware.grouper.cache.EhcacheStats
All Implemented Interfaces:
CacheStats

public class EhcacheStats
extends Object
implements CacheStats

Wrapper around ehcache Statistics class.

Since:
1.2.1
Version:
$Id: EhcacheStats.java,v 1.2 2007-08-27 15:53:52 blair Exp $
Author:
blair christensen.

Constructor Summary
EhcacheStats(net.sf.ehcache.Statistics stats)
          Instantiate new EhcacheStats object.
 
Method Summary
 long getHits()
           
 long getMisses()
           
 long getSize()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhcacheStats

public EhcacheStats(net.sf.ehcache.Statistics stats)
             throws IllegalArgumentException
Instantiate new EhcacheStats object.

Throws:
IllegalArgumentException - if stats is null.
Since:
1.2.1
Method Detail

getHits

public long getHits()
Specified by:
getHits in interface CacheStats
Returns:
Number of cache hits.
Since:
1.2.1

getMisses

public long getMisses()
Specified by:
getMisses in interface CacheStats
Returns:
Number of cache misses.
Since:
1.2.1

getSize

public long getSize()
Specified by:
getSize in interface CacheStats
Returns:
Number of objects in cache.
Since:
1.2.1