|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.core.SolrXMLCoresLocator
public class SolrXMLCoresLocator
Writes any changes in core definitions to this instance's solr.xml
Nested Class Summary | |
---|---|
static class |
SolrXMLCoresLocator.NonPersistingLocator
|
Field Summary | |
---|---|
static String |
DEFAULT_CORE_NAME
Core name to use if a core definition has no name |
static String |
INDENT
|
static String |
NEWLINE
|
Constructor Summary | |
---|---|
SolrXMLCoresLocator(String originalXML,
ConfigSolrXmlOld cfg)
Create a new SolrXMLCoresLocator |
Method Summary | |
---|---|
protected static String |
buildCoreTag(CoreDescriptor cd)
Serialize a coredescriptor as a String containing an XML <core> tag. |
protected String |
buildSolrXML(List<CoreDescriptor> cds)
|
void |
create(CoreContainer cc,
CoreDescriptor... coreDescriptors)
Make new cores available for discovery |
void |
delete(CoreContainer cc,
CoreDescriptor... coreDescriptors)
Ensure that the core definitions from the passed in CoreDescriptors are not available for discovery |
List<CoreDescriptor> |
discover(CoreContainer cc)
Load all the CoreDescriptors from persistence store |
protected void |
doPersist(String xml)
|
void |
persist(CoreContainer cc,
CoreDescriptor... coreDescriptors)
Ensure that the core definitions from the passed in CoreDescriptors will persist across container restarts. |
void |
rename(CoreContainer cc,
CoreDescriptor oldCD,
CoreDescriptor newCD)
Persist the new name of a renamed core |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_CORE_NAME
public static final String NEWLINE
public static final String INDENT
Constructor Detail |
---|
public SolrXMLCoresLocator(String originalXML, ConfigSolrXmlOld cfg)
originalXML
- the original content of the solr.xml filecfg
- the CoreContainer's config objectMethod Detail |
---|
protected String buildSolrXML(List<CoreDescriptor> cds)
protected static String buildCoreTag(CoreDescriptor cd)
cd
- the CoreDescriptor
public final void persist(CoreContainer cc, CoreDescriptor... coreDescriptors)
CoresLocator
persist
in interface CoresLocator
cc
- the CoreContainercoreDescriptors
- CoreDescriptors to persistprotected void doPersist(String xml)
public void create(CoreContainer cc, CoreDescriptor... coreDescriptors)
CoresLocator
create
in interface CoresLocator
cc
- the CoreContainercoreDescriptors
- CoreDescriptors to persistpublic void delete(CoreContainer cc, CoreDescriptor... coreDescriptors)
CoresLocator
delete
in interface CoresLocator
cc
- the CoreContainercoreDescriptors
- CoreDescriptors of the cores to removepublic void rename(CoreContainer cc, CoreDescriptor oldCD, CoreDescriptor newCD)
CoresLocator
rename
in interface CoresLocator
cc
- the CoreContaineroldCD
- the CoreDescriptor of the core before renamingnewCD
- the CoreDescriptor of the core after renamingpublic List<CoreDescriptor> discover(CoreContainer cc)
CoresLocator
discover
in interface CoresLocator
cc
- the CoreContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |