edu.internet2.middleware.grouper.cache
Class EhcacheStats
java.lang.Object
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. |
EhcacheStats
public EhcacheStats(net.sf.ehcache.Statistics stats)
throws IllegalArgumentException
- Instantiate new EhcacheStats object.
- Throws:
IllegalArgumentException
- if stats is null.- Since:
- 1.2.1
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