org.apache.solr.core
Class CoreDescriptor
java.lang.Object
org.apache.solr.core.CoreDescriptor
public class CoreDescriptor
- extends Object
A Solr core descriptor
- Since:
- solr 1.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
instanceDir
protected String instanceDir
dataDir
protected String dataDir
ulogDir
protected String ulogDir
configName
protected String configName
propertiesName
protected String propertiesName
schemaName
protected String schemaName
CoreDescriptor
public CoreDescriptor(CoreContainer coreContainer,
String name,
String instanceDir)
CoreDescriptor
public CoreDescriptor(CoreDescriptor descr)
getDefaultConfigName
public String getDefaultConfigName()
- Returns:
- the default config name.
getDefaultSchemaName
public String getDefaultSchemaName()
- Returns:
- the default schema name.
getDefaultDataDir
public String getDefaultDataDir()
- Returns:
- the default data directory.
getPropertiesName
public String getPropertiesName()
setPropertiesName
public void setPropertiesName(String propertiesName)
getDataDir
public String getDataDir()
setDataDir
public void setDataDir(String s)
usingDefaultDataDir
public boolean usingDefaultDataDir()
getRawInstanceDir
public String getRawInstanceDir()
- Returns:
- the core instance directory.
getInstanceDir
public String getInstanceDir()
- Returns:
- the core instance directory, prepended with solr_home if not an absolute path.
setConfigName
public void setConfigName(String name)
- Sets the core configuration resource name.
getConfigName
public String getConfigName()
- Returns:
- the core configuration resource name.
setSchemaName
public void setSchemaName(String name)
- Sets the core schema resource name.
getSchemaName
public String getSchemaName()
- Returns:
- the core schema resource name.
getName
public String getName()
- Returns:
- the initial core name
getCoreContainer
public CoreContainer getCoreContainer()
setCoreProperties
public void setCoreProperties(Properties coreProperties)
- Set this core's properties. Please note that some implicit values will be added to the
Properties instance passed into this method. This means that the Properties instance
set to this method will have different (less) key/value pairs than the Properties
instance returned by #getCoreProperties method.
getCloudDescriptor
public CloudDescriptor getCloudDescriptor()
setCloudDescriptor
public void setCloudDescriptor(CloudDescriptor cloudDesc)
isLoadOnStartup
public boolean isLoadOnStartup()
setLoadOnStartup
public void setLoadOnStartup(boolean loadOnStartup)
isTransient
public boolean isTransient()
setTransient
public void setTransient(boolean aTransient)
getUlogDir
public String getUlogDir()
setUlogDir
public void setUlogDir(String ulogDir)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.