Package org.apache.solr.search
Class CacheConfig
- java.lang.Object
-
- org.apache.solr.search.CacheConfig
-
- All Implemented Interfaces:
org.apache.solr.common.MapSerializable
public class CacheConfig extends Object implements org.apache.solr.common.MapSerializable
Contains the knowledge of how cache config is stored in the solrconfig.xml file, and implements a factory to create caches.
-
-
Constructor Summary
Constructors Constructor Description CacheConfig()
CacheConfig(Class<? extends SolrCache> clazz, Map<String,String> args, CacheRegenerator regenerator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CacheConfig
getConfig(SolrConfig solrConfig, String nodeName, Map<String,String> attrs, String xpath)
static CacheConfig
getConfig(SolrConfig solrConfig, org.apache.solr.common.ConfigNode node, String xpath)
static Map<String,CacheConfig>
getMultipleConfigs(SolrConfig solrConfig, String configPath, List<org.apache.solr.common.ConfigNode> nodes)
String
getNodeName()
CacheRegenerator
getRegenerator()
SolrCache
newInstance()
void
setRegenerator(CacheRegenerator regenerator)
Map<String,Object>
toMap(Map<String,Object> map)
-
-
-
Method Detail
-
getRegenerator
public CacheRegenerator getRegenerator()
-
setRegenerator
public void setRegenerator(CacheRegenerator regenerator)
-
getMultipleConfigs
public static Map<String,CacheConfig> getMultipleConfigs(SolrConfig solrConfig, String configPath, List<org.apache.solr.common.ConfigNode> nodes)
-
getConfig
public static CacheConfig getConfig(SolrConfig solrConfig, org.apache.solr.common.ConfigNode node, String xpath)
-
getConfig
public static CacheConfig getConfig(SolrConfig solrConfig, String nodeName, Map<String,String> attrs, String xpath)
-
newInstance
public SolrCache newInstance()
-
toMap
public Map<String,Object> toMap(Map<String,Object> map)
- Specified by:
toMap
in interfaceorg.apache.solr.common.MapSerializable
-
getNodeName
public String getNodeName()
-
-