Package org.apache.solr.api
Class ZkClusterPluginsSource
java.lang.Object
org.apache.solr.api.ZkClusterPluginsSource
- All Implemented Interfaces:
ClusterPluginsSource
The plugin configurations are stored and retrieved from the ZooKeeper cluster properties, stored
at the
ZkStateReader.CONTAINER_PLUGINS location This supports mutable configurations, and
management via the /cluster/plugin APIs-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the Edit Api for this plugin source, if it supports edit operationsGet the Read Api for this plugin sourcevoidPersist the updated set of plugin configsplugins()Retrieve the current plugin configurations.
-
Constructor Details
-
ZkClusterPluginsSource
-
-
Method Details
-
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
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
Retrieve the current plugin configurations.- Specified by:
pluginsin interfaceClusterPluginsSource- Returns:
- current plugin configurations, where keys are plugin names and values are
PluginMetaplugin metadata. - Throws:
IOException- on IO errors
-
persistPlugins
public void persistPlugins(Function<Map<String, Object>, throws IOExceptionMap<String, Object>> modifier) Description copied from interface:ClusterPluginsSourcePersist the updated set of plugin configs- Specified by:
persistPluginsin interfaceClusterPluginsSource- Parameters:
modifier- A function providing the map of plugin configs to be persisted- Throws:
IOException
-