Modifier and Type | Field and Description |
---|---|
static String |
CORE_COLLECTION |
static String |
CORE_CONFIG |
static String |
CORE_CONFIGSET |
static String |
CORE_CONFIGSET_PROPERTIES |
static String |
CORE_DATADIR |
static String |
CORE_LOADONSTARTUP |
static String |
CORE_NAME |
static String |
CORE_NODE_NAME |
static String |
CORE_PROPERTIES |
static String |
CORE_ROLES |
static String |
CORE_SCHEMA |
static String |
CORE_SHARD |
static String |
CORE_TRANSIENT |
static String |
CORE_ULOGDIR |
protected Properties |
coreProperties
The properties for this core, as available through getProperty()
|
static String |
DEFAULT_EXTERNAL_PROPERTIES_FILE |
protected Properties |
originalCoreProperties
The original standard core properties, before substitution
|
protected Properties |
originalExtraProperties
The original extra core properties, before substitution
|
static String |
SOLR_CORE_PROP_PREFIX |
static com.google.common.collect.ImmutableList<String> |
standardPropNames |
protected Properties |
substitutableProperties
The properties for this core, substitutable by resource loaders
|
Constructor and Description |
---|
CoreDescriptor(String coreName,
CoreDescriptor other)
Create a new CoreDescriptor using the properties of an existing one
|
CoreDescriptor(String name,
Path instanceDir,
CoreContainer coreContainer,
String... coreProps)
TESTS ONLY
|
CoreDescriptor(String name,
Path instanceDir,
Map<String,String> coreProps,
Properties containerProperties,
ZkController zkController)
Create a new CoreDescriptor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildSubstitutableProperties()
Create the properties object used by resource loaders, etc, for property
substitution.
|
static String |
checkPropertyIsNotEmpty(String value,
String propName) |
CloudDescriptor |
getCloudDescriptor() |
String |
getCollectionName() |
String |
getConfigName() |
String |
getConfigSet() |
String |
getConfigSetPropertiesName() |
String |
getCoreProperty(String prop,
String defVal)
Returns a specific property defined on this CoreDescriptor
|
String |
getDataDir() |
Path |
getInstanceDir()
The core instance directory (absolute).
|
String |
getName() |
Properties |
getPersistableStandardProperties()
Get the standard properties in persistable form
|
Properties |
getPersistableUserProperties()
Get user-defined core properties in persistable form
|
String |
getPropertiesName() |
String |
getSchemaName() |
Properties |
getSubstitutableProperties()
Returns all substitutable properties defined on this CoreDescriptor
|
String |
getUlogDir() |
boolean |
isConfigSetTrusted() |
boolean |
isLoadOnStartup() |
boolean |
isTransient() |
protected static boolean |
isUserDefinedProperty(String propName)
Is this property a Solr-standard property, or is it an extra property
defined per-core by the user?
|
protected void |
loadExtraProperties()
Load properties specified in an external properties file.
|
void |
setConfigSet(String configSetName)
TODO remove mutability or at least make this non-public?
|
void |
setConfigSetTrusted(boolean trusted)
TODO remove mutability
|
String |
toString() |
boolean |
usingDefaultDataDir() |
public static final String CORE_NAME
public static final String CORE_CONFIG
public static final String CORE_DATADIR
public static final String CORE_ULOGDIR
public static final String CORE_SCHEMA
public static final String CORE_SHARD
public static final String CORE_COLLECTION
public static final String CORE_ROLES
public static final String CORE_PROPERTIES
public static final String CORE_LOADONSTARTUP
public static final String CORE_TRANSIENT
public static final String CORE_NODE_NAME
public static final String CORE_CONFIGSET
public static final String CORE_CONFIGSET_PROPERTIES
public static final String SOLR_CORE_PROP_PREFIX
public static final String DEFAULT_EXTERNAL_PROPERTIES_FILE
public static com.google.common.collect.ImmutableList<String> standardPropNames
protected final Properties originalCoreProperties
protected final Properties originalExtraProperties
protected final Properties coreProperties
protected final Properties substitutableProperties
public CoreDescriptor(String name, Path instanceDir, CoreContainer coreContainer, String... coreProps)
public CoreDescriptor(String coreName, CoreDescriptor other)
coreName
- the new CoreDescriptor's nameother
- the CoreDescriptor to copypublic CoreDescriptor(String name, Path instanceDir, Map<String,String> coreProps, Properties containerProperties, ZkController zkController)
name
- the CoreDescriptor's nameinstanceDir
- a Path resolving to the instanceDircoreProps
- a Map of the properties for this corecontainerProperties
- the properties from the enclosing container.zkController
- the ZkController in SolrCloud mode, otherwise null.public Properties getPersistableStandardProperties()
public Properties getPersistableUserProperties()
protected void loadExtraProperties()
properties
property on
the original Properties object used to create this CoreDescriptor. If
this has not been set, then we look for conf/solrcore.properties
underneath the instance dir.
File paths are taken as read from the core's instance directory
if they are not absolute.protected void buildSubstitutableProperties()
protected static boolean isUserDefinedProperty(String propName)
propName
- the Property nametrue
if this property is user-definedpublic String getPropertiesName()
public String getDataDir()
public boolean usingDefaultDataDir()
public Path getInstanceDir()
public String getConfigName()
public String getSchemaName()
public String getName()
public String getCollectionName()
public CloudDescriptor getCloudDescriptor()
public boolean isLoadOnStartup()
public boolean isTransient()
public String getUlogDir()
public String getCoreProperty(String prop, String defVal)
prop
- - value to read from the properties structure.defVal
- - return if no property found.public Properties getSubstitutableProperties()
public String getConfigSet()
public void setConfigSet(String configSetName)
public String getConfigSetPropertiesName()
public boolean isConfigSetTrusted()
public void setConfigSetTrusted(boolean trusted)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.