Class NodeConfig

java.lang.Object
org.apache.solr.core.NodeConfig

public class NodeConfig extends Object
  • Field Details

  • Method Details

    • loadNodeConfig

      public static NodeConfig loadNodeConfig(Path solrHome, Properties nodeProperties)
      Get the NodeConfig. This may also be used by custom filters to load relevant configuration.
      Returns:
      the NodeConfig
    • getConfigSetServiceClass

      public String getConfigSetServiceClass()
    • getNodeName

      public String getNodeName()
    • getCoreRootDirectory

      public Path getCoreRootDirectory()
      Absolute.
    • getCoresLocatorClass

      public String getCoresLocatorClass()
    • getCoreSorterClass

      public String getCoreSorterClass()
    • getSolrDataHome

      public Path getSolrDataHome()
      Absolute.
    • getSolrInstallDir

      public static Path getSolrInstallDir()
      Obtain the path of solr's binary installation directory, e.g. /opt/solr
      Returns:
      path to install dir or null if solr.install.dir not set.
    • getBooleanQueryMaxClauseCount

      public Integer getBooleanQueryMaxClauseCount()
      If null, the lucene default will not be overridden
      See Also:
      • IndexSearcher.setMaxClauseCount(int)
    • getShardHandlerFactoryPluginInfo

      public PluginInfo getShardHandlerFactoryPluginInfo()
    • getUpdateShardHandlerConfig

      public UpdateShardHandlerConfig getUpdateShardHandlerConfig()
    • getCoreLoadThreadCount

      public int getCoreLoadThreadCount(boolean zkAware)
    • getReplayUpdatesThreads

      public int getReplayUpdatesThreads()
    • getIndexSearcherExecutorThreads

      public int getIndexSearcherExecutorThreads()
    • getSharedLibDirectory

      public String getSharedLibDirectory()
      Returns a directory, optionally a comma separated list of directories that will be added to Solr's class path for searching for classes and plugins. The path is either absolute or relative to SOLR_HOME. Note that SOLR_HOME/lib will always be added to the search path even if not included in this list.
      Returns:
      a comma separated list of path strings or null if no paths defined
    • getCoreAdminHandlerClass

      public String getCoreAdminHandlerClass()
    • getCoreAdminHandlerActions

      public Map<String,String> getCoreAdminHandlerActions()
    • getCollectionsHandlerClass

      public String getCollectionsHandlerClass()
    • getHealthCheckHandlerClass

      public String getHealthCheckHandlerClass()
    • getInfoHandlerClass

      public String getInfoHandlerClass()
    • getConfigSetsHandlerClass

      public String getConfigSetsHandlerClass()
    • hasSchemaCache

      public boolean hasSchemaCache()
    • getConfigSetBaseDirectory

      public Path getConfigSetBaseDirectory()
      Absolute.
    • getLogWatcherConfig

      public LogWatcherConfig getLogWatcherConfig()
    • getCloudConfig

      public CloudConfig getCloudConfig()
    • getSolrProperties

      public Properties getSolrProperties()
    • getSolrHome

      public Path getSolrHome()
    • getSolrResourceLoader

      public SolrResourceLoader getSolrResourceLoader()
    • getBackupRepositoryPlugins

      public PluginInfo[] getBackupRepositoryPlugins()
    • getMetricsConfig

      public MetricsConfig getMetricsConfig()
    • getCachesConfig

      public Map<String,CacheConfig> getCachesConfig()
    • getTracerConfiguratorPluginInfo

      public PluginInfo getTracerConfiguratorPluginInfo()
    • getClusterPlugins

      public PluginInfo[] getClusterPlugins()
    • getAllowPaths

      public Set<Path> getAllowPaths()
      Extra file paths that will be allowed for core creation, in addition to SOLR_HOME, SOLR_DATA_HOME and coreRootDir
    • getAllowUrls

      public List<String> getAllowUrls()
      Allow-list of Solr nodes URLs.
    • hideStackTraces

      public boolean hideStackTraces()
    • getModules

      public String getModules()
      Returns the modules as configured in solr.xml. Comma separated list. May be null if not defined
    • isSysPropHidden

      public boolean isSysPropHidden(String sysPropName)
      Returns whether a given system property is hidden
    • getRedactedSysPropValue

      public String getRedactedSysPropValue(String sysPropName)
      Returns the system property value, or "--REDACTED--" if the system property is hidden
    • initModules

      public static void initModules(SolrResourceLoader loader, String modules)