Package org.apache.solr.api
Interface ClusterPluginsSource
-
- All Known Implementing Classes:
NodeConfigClusterPluginsSource,ZkClusterPluginsSource
public interface ClusterPluginsSourceA source for Cluster Plugin configurations
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description ContainerPluginsApi.EditgetEditApi()Get the Edit Api for this plugin source, if it supports edit operationsContainerPluginsApi.ReadgetReadApi()Get the Read Api for this plugin sourcestatic ClusterPluginsSourceloadClusterPluginsSource(CoreContainer cc, SolrResourceLoader loader)voidpersistPlugins(Function<Map<String,Object>,Map<String,Object>> modifier)Persist the updated set of plugin configsMap<String,Object>plugins()Get a map of cluster plugin configurations from this source, where keys are plugin names and values arePluginMetaplugin metadata.static StringresolveClassName()Resolves the name of the class that will be used to provide cluster plugins.
-
-
-
Method Detail
-
resolveClassName
static String 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
static ClusterPluginsSource loadClusterPluginsSource(CoreContainer cc, SolrResourceLoader loader)
-
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
Map<String,Object> plugins() throws IOException
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
void persistPlugins(Function<Map<String,Object>,Map<String,Object>> modifier) throws IOException
Persist the updated set of plugin configs- Parameters:
modifier- A function providing the map of plugin configs to be persisted- Throws:
IOException
-
-