|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.core.CorePropertiesLocator
public class CorePropertiesLocator
Persists CoreDescriptors as properties files
Field Summary | |
---|---|
static String |
PROPERTIES_FILENAME
|
Constructor Summary | |
---|---|
CorePropertiesLocator(String coreDiscoveryRoot)
|
Method Summary | |
---|---|
protected CoreDescriptor |
buildCoreDescriptor(File propertiesFile,
CoreContainer cc)
|
protected Properties |
buildCoreProperties(CoreDescriptor cd)
|
void |
create(CoreContainer cc,
CoreDescriptor... coreDescriptors)
Make new cores available for discovery |
protected static String |
createName(Properties p,
File instanceDir)
|
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 |
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 PROPERTIES_FILENAME
Constructor Detail |
---|
public CorePropertiesLocator(String coreDiscoveryRoot)
Method Detail |
---|
public void create(CoreContainer cc, CoreDescriptor... coreDescriptors)
CoresLocator
create
in interface CoresLocator
cc
- the CoreContainercoreDescriptors
- CoreDescriptors to persistpublic void persist(CoreContainer cc, CoreDescriptor... coreDescriptors)
CoresLocator
persist
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
protected CoreDescriptor buildCoreDescriptor(File propertiesFile, CoreContainer cc)
protected static String createName(Properties p, File instanceDir)
protected Properties buildCoreProperties(CoreDescriptor cd)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |