Package org.apache.solr.api
Interface ClusterPluginsSource
- All Known Implementing Classes:
NodeConfigClusterPluginsSource,ZkClusterPluginsSource
public interface ClusterPluginsSource
A source for Cluster Plugin configurations
-
Method Summary
Modifier and TypeMethodDescriptionGet the Edit Api for this plugin source, if it supports edit operationsGet the Read Api for this plugin sourcestatic ClusterPluginsSourceloadClusterPluginsSource(CoreContainer cc, SolrResourceLoader loader) voidPersist the updated set of plugin configsplugins()Get a map of cluster plugin configurations from this source, where keys are plugin names and values arePluginMetaplugin metadata.static StringResolves the name of the class that will be used to provide cluster plugins.
-
Method Details
-
resolveClassName
Resolves the name of the class that will be used to provide cluster plugins.- Returns:
- The name of the class to use as the
ClusterPluginsSource
-
loadClusterPluginsSource
-
getReadApi
ContainerPluginsApi.Read getReadApi()Get the Read Api for this plugin source- Returns:
- A
ContainerPluginsApiRead Api for this plugin source
-
getEditApi
ContainerPluginsApi.Edit getEditApi()Get the Edit Api for this plugin source, if it supports edit operations- Returns:
- A
ContainerPluginsApiEdit Api for this plugin source, or null if the plugin source does not support editing the plugin configs
-
plugins
Get a map of cluster plugin configurations from this source, where keys are plugin names and values arePluginMetaplugin metadata.- Returns:
- An immutable map of plugin configurations
- Throws:
IOException
-
persistPlugins
Persist the updated set of plugin configs- Parameters:
modifier- A function providing the map of plugin configs to be persisted- Throws:
IOException
-