Package org.apache.solr.api
Class NodeConfigClusterPluginsSource
- java.lang.Object
-
- org.apache.solr.api.NodeConfigClusterPluginsSource
-
- All Implemented Interfaces:
ClusterPluginsSource
public class NodeConfigClusterPluginsSource extends Object implements ClusterPluginsSource
Plugin configurations that are defined in solr.xml. This supports immutable deployments, and the /cluster/plugin Edit APIs are not available
-
-
Constructor Summary
Constructors Constructor Description NodeConfigClusterPluginsSource(CoreContainer cc)
-
Method Summary
All Methods Instance Methods Concrete 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 sourcevoidpersistPlugins(Function<Map<String,Object>,Map<String,Object>> modifier)This method should never be invoked because the Edit Apis are not made available by the pluginMap<String,Object>plugins()Get a map of cluster plugin configurations from this source, where keys are plugin names and values arePluginMetaplugin metadata.
-
-
-
Constructor Detail
-
NodeConfigClusterPluginsSource
public NodeConfigClusterPluginsSource(CoreContainer cc)
-
-
Method Detail
-
getReadApi
public ContainerPluginsApi.Read getReadApi()
Description copied from interface:ClusterPluginsSourceGet the Read Api for this plugin source- Specified by:
getReadApiin interfaceClusterPluginsSource- Returns:
- A
ContainerPluginsApiRead Api for this plugin source
-
getEditApi
public ContainerPluginsApi.Edit getEditApi()
Description copied from interface:ClusterPluginsSourceGet the Edit Api for this plugin source, if it supports edit operations- Specified by:
getEditApiin interfaceClusterPluginsSource- Returns:
- A
ContainerPluginsApiEdit Api for this plugin source, or null if the plugin source does not support editing the plugin configs
-
plugins
public Map<String,Object> plugins() throws IOException
Description copied from interface:ClusterPluginsSourceGet a map of cluster plugin configurations from this source, where keys are plugin names and values arePluginMetaplugin metadata.- Specified by:
pluginsin interfaceClusterPluginsSource- Returns:
- An immutable map of plugin configurations
- Throws:
IOException
-
persistPlugins
public void persistPlugins(Function<Map<String,Object>,Map<String,Object>> modifier)
This method should never be invoked because the Edit Apis are not made available by the plugin- Specified by:
persistPluginsin interfaceClusterPluginsSource- Parameters:
modifier- A function providing the map of plugin configs to be persisted- Throws:
UnsupportedOperationException- always
-
-