Class MinimizeCoresPlacementFactory
- java.lang.Object
-
- org.apache.solr.cluster.placement.plugins.MinimizeCoresPlacementFactory
-
- All Implemented Interfaces:
ConfigurablePlugin<PlacementPluginFactory.NoConfig>
,PlacementPluginFactory<PlacementPluginFactory.NoConfig>
public class MinimizeCoresPlacementFactory extends Object implements PlacementPluginFactory<PlacementPluginFactory.NoConfig>
Factory for creatingMinimizeCoresPlacementFactory.MinimizeCoresPlacementPlugin
, a Placement plugin implementing placing replicas to minimize number of cores perNode
, while not placing two replicas of the same shard on the same node. This code is meant as an educational example of a placement plugin.See
MinimizeCoresPlacementFactory.NodeWithCoreCount
for information on how this PlacementFactory weights nodes.See
AffinityPlacementFactory
for a more realistic example and documentation.
-
-
Nested Class Summary
-
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 MinimizeCoresPlacementFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlacementPlugin
createPluginInstance()
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:PlacementPluginFactory
Returns 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:
createPluginInstance
in interfacePlacementPluginFactory<PlacementPluginFactory.NoConfig>
-
-