org.apache.solr.search
Class SolrCacheBase
java.lang.Object
org.apache.solr.search.SolrCacheBase
- Direct Known Subclasses:
- FastLRUCache, LRUCache
public abstract class SolrCacheBase
- extends Object
Common base class of reusable functionality for SolrCaches
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
regenerator
protected CacheRegenerator regenerator
autowarm
protected SolrCacheBase.AutoWarmCountRef autowarm
SolrCacheBase
public SolrCacheBase()
calcHitRatio
protected static String calcHitRatio(long lookups,
long hits)
- Returns a "Hit Ratio" (ie: max of 1.00, not a percentage) suitable for
display purposes.
getVersion
public String getVersion()
getCategory
public SolrInfoMBean.Category getCategory()
getDocs
public URL[] getDocs()
init
public void init(Map<String,String> args,
CacheRegenerator regenerator)
getAutowarmDescription
protected String getAutowarmDescription()
isAutowarmingOn
protected boolean isAutowarmingOn()
setState
public void setState(SolrCache.State state)
getState
public SolrCache.State getState()
name
public String name()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.