Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 53   Methods: 5
NCLOC: 26   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
BaseEvictionPolicy.java - 100% 100% 100%
coverage
 1    package org.jboss.cache.eviction;
 2   
 3    import org.jboss.cache.CacheSPI;
 4    import org.jboss.cache.Fqn;
 5   
 6    /**
 7    * Base class implementation of EvictionPolicy and TreeCacheListener.
 8    *
 9    * @author Ben Wang 2-2004
 10    * @author Daniel Huang - dhuang@jboss.org
 11    * @version $Revision: 1.9 $
 12    */
 13    public abstract class BaseEvictionPolicy implements EvictionPolicy
 14    {
 15    protected CacheSPI cache_;
 16   
 17  4276 public BaseEvictionPolicy()
 18    {
 19    }
 20   
 21    /** EvictionPolicy interface implementation */
 22   
 23    /**
 24    * Evict the node under given Fqn from cache.
 25    *
 26    * @param fqn The fqn of a node in cache.
 27    * @throws Exception
 28    */
 29  86766 public void evict(Fqn fqn) throws Exception
 30    {
 31  86766 cache_.evict(fqn, false);
 32    }
 33   
 34  1140 public void setCache(CacheSPI cache)
 35    {
 36  1140 this.cache_ = cache;
 37    }
 38   
 39  32 public CacheSPI getCache()
 40    {
 41  32 return this.cache_;
 42    }
 43   
 44    /*
 45    * (non-Javadoc)
 46    * @see org.jboss.cache.eviction.EvictionPolicy#canIgnoreEvent(org.jboss.cache.Fqn)
 47    *
 48    */
 49  1362597 public boolean canIgnoreEvent(Fqn fqn, NodeEventType eventType)
 50    {
 51  1362597 return false;
 52    }
 53    }