Package org.apache.solr.api
Class ContainerPluginsRegistry
- java.lang.Object
- 
- org.apache.solr.api.ContainerPluginsRegistry
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- org.apache.solr.common.cloud.ClusterPropertiesListener,- org.apache.solr.common.MapSerializable,- org.apache.solr.common.MapWriter,- org.apache.solr.common.NavigableObject
 
 public class ContainerPluginsRegistry extends Object implements org.apache.solr.common.cloud.ClusterPropertiesListener, org.apache.solr.common.MapWriter, Closeable This class manages the container-level plugins and their Api-s. It is responsible for adding / removing / replacing the plugins according to the updated configuration obtained fromContainerPluginsApi.plugins(Supplier).Plugins instantiated by this class may implement zero or more Api-s, which are then registered in the CoreContainerApiBag. They may be also post-processed for additional functionality byContainerPluginsRegistry.PluginRegistryListener-s registered with this class.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classContainerPluginsRegistry.ApiInfostatic classContainerPluginsRegistry.Diffstatic interfaceContainerPluginsRegistry.PluginRegistryListenerListener for notifications about added / deleted / modified plugins.
 - 
Constructor SummaryConstructors Constructor Description ContainerPluginsRegistry(CoreContainer coreContainer, ApiBag apiBag)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static Map<String,ContainerPluginsRegistry.Diff>compareMaps(Map<String,?> a, Map<String,?> b)ContainerPluginsRegistry.ApiInfocreateInfo(Map<String,Object> info, List<String> errs)static <T extends org.apache.solr.common.MapWriter>
 Class<T>getConfigClass(ConfigurablePlugin<T> o)Get the generic type of aConfigurablePluginContainerPluginsRegistry.ApiInfogetPlugin(String name)booleanonChange(Map<String,Object> properties)voidrefresh()voidregisterListener(ContainerPluginsRegistry.PluginRegistryListener listener)voidsetPhaser(Phaser phaser)A phaser that will advance phases every timeonChange(Map)is called.voidunregisterListener(ContainerPluginsRegistry.PluginRegistryListener listener)voidwriteMap(org.apache.solr.common.MapWriter.EntryWriter ew)
 
- 
- 
- 
Constructor Detail- 
ContainerPluginsRegistrypublic ContainerPluginsRegistry(CoreContainer coreContainer, ApiBag apiBag) 
 
- 
 - 
Method Detail- 
onChangepublic boolean onChange(Map<String,Object> properties) - Specified by:
- onChangein interface- org.apache.solr.common.cloud.ClusterPropertiesListener
 
 - 
setPhaserpublic void setPhaser(Phaser phaser) A phaser that will advance phases every timeonChange(Map)is called. Useful for allowing tests to know when a new configuration is finished getting set.
 - 
registerListenerpublic void registerListener(ContainerPluginsRegistry.PluginRegistryListener listener) 
 - 
unregisterListenerpublic void unregisterListener(ContainerPluginsRegistry.PluginRegistryListener listener) 
 - 
writeMappublic void writeMap(org.apache.solr.common.MapWriter.EntryWriter ew) throws IOException- Specified by:
- writeMapin interface- org.apache.solr.common.MapWriter
- Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
 - 
getPluginpublic ContainerPluginsRegistry.ApiInfo getPlugin(String name) 
 - 
refreshpublic void refresh() 
 - 
getConfigClasspublic static <T extends org.apache.solr.common.MapWriter> Class<T> getConfigClass(ConfigurablePlugin<T> o) Get the generic type of aConfigurablePlugin
 - 
createInfopublic ContainerPluginsRegistry.ApiInfo createInfo(Map<String,Object> info, List<String> errs) throws IOException - Throws:
- IOException
 
 
- 
 
-