org.apache.solr.search
Class CacheConfig

java.lang.Object
  extended by org.apache.solr.search.CacheConfig

public class CacheConfig
extends Object

Contains the knowledge of how cache config is stored in the solrconfig.xml file, and implements a factory to create caches.

Version:
$Id: CacheConfig.java 597847 2007-11-24 13:51:46Z ryan $

Constructor Summary
CacheConfig()
           
 
Method Summary
static CacheConfig getConfig(SolrConfig solrConfig, Node node)
           
static CacheConfig getConfig(SolrConfig solrConfig, String xpath)
           
static CacheConfig[] getMultipleConfigs(SolrConfig solrConfig, String configPath)
           
 CacheRegenerator getRegenerator()
           
 SolrCache newInstance()
           
 void setRegenerator(CacheRegenerator regenerator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheConfig

public CacheConfig()
Method Detail

getRegenerator

public CacheRegenerator getRegenerator()

setRegenerator

public void setRegenerator(CacheRegenerator regenerator)

getMultipleConfigs

public static CacheConfig[] getMultipleConfigs(SolrConfig solrConfig,
                                               String configPath)

getConfig

public static CacheConfig getConfig(SolrConfig solrConfig,
                                    String xpath)

getConfig

public static CacheConfig getConfig(SolrConfig solrConfig,
                                    Node node)

newInstance

public SolrCache newInstance()


Copyright © 2008 Apache Software Foundation. All Rights Reserved.