Class SimplePlacementFactory
- java.lang.Object
-
- org.apache.solr.cluster.placement.plugins.SimplePlacementFactory
-
- All Implemented Interfaces:
ConfigurablePlugin<PlacementPluginFactory.NoConfig>,PlacementPluginFactory<PlacementPluginFactory.NoConfig>
public class SimplePlacementFactory extends Object implements PlacementPluginFactory<PlacementPluginFactory.NoConfig>
Factory for creatingSimplePlacementFactory.SimplePlacementPlugin, a placement plugin implementing the logic from the oldLegacyAssignStrategy. This chooses nodes with the fewest cores (especially cores of the same collection).See
SimplePlacementFactory.SameCollWeightedNodefor information on how this PlacementFactory weights nodes.See
AffinityPlacementFactoryfor a more realistic example and documentation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimplePlacementFactory.SimplePlacementPlugin-
Nested classes/interfaces inherited from interface org.apache.solr.cluster.placement.PlacementPluginFactory
PlacementPluginFactory.NoConfig
-
-
Field Summary
-
Fields inherited from interface org.apache.solr.cluster.placement.PlacementPluginFactory
PLUGIN_NAME
-
-
Constructor Summary
Constructors Constructor Description SimplePlacementFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlacementPlugincreatePluginInstance()Returns an instance of the plugin that will be repeatedly (and concurrently) called to compute placement.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.cluster.placement.PlacementPluginFactory
configure, getConfig
-
-
-
-
Method Detail
-
createPluginInstance
public PlacementPlugin createPluginInstance()
Description copied from interface:PlacementPluginFactoryReturns an instance of the plugin that will be repeatedly (and concurrently) called to compute placement. Multiple instances of a plugin can be used in parallel (for example if configuration has to change, but plugin instances with the previous configuration are still being used).- Specified by:
createPluginInstancein interfacePlacementPluginFactory<PlacementPluginFactory.NoConfig>
-
-