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.Edit
getEditApi()
Get the Edit Api for this plugin source, if it supports edit operationsContainerPluginsApi.Read
getReadApi()
Get the Read Api for this plugin sourcevoid
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 pluginMap<String,Object>
plugins()
Get a map of cluster plugin configurations from this source, where keys are plugin names and values arePluginMeta
plugin metadata.
-
-
-
Constructor Detail
-
NodeConfigClusterPluginsSource
public NodeConfigClusterPluginsSource(CoreContainer cc)
-
-
Method Detail
-
getReadApi
public ContainerPluginsApi.Read getReadApi()
Description copied from interface:ClusterPluginsSource
Get the Read Api for this plugin source- Specified by:
getReadApi
in interfaceClusterPluginsSource
- Returns:
- A
ContainerPluginsApi
Read Api for this plugin source
-
getEditApi
public ContainerPluginsApi.Edit getEditApi()
Description copied from interface:ClusterPluginsSource
Get the Edit Api for this plugin source, if it supports edit operations- Specified by:
getEditApi
in interfaceClusterPluginsSource
- Returns:
- A
ContainerPluginsApi
Edit 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:ClusterPluginsSource
Get a map of cluster plugin configurations from this source, where keys are plugin names and values arePluginMeta
plugin metadata.- Specified by:
plugins
in 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:
persistPlugins
in interfaceClusterPluginsSource
- Parameters:
modifier
- A function providing the map of plugin configs to be persisted- Throws:
UnsupportedOperationException
- always
-
-