Class AffinityPlacementFactory.AffinityPlacementPlugin
java.lang.Object
org.apache.solr.cluster.placement.plugins.OrderedNodePlacementPlugin
org.apache.solr.cluster.placement.plugins.AffinityPlacementFactory.AffinityPlacementPlugin
- All Implemented Interfaces:
PlacementPlugin
- Enclosing class:
AffinityPlacementFactory
public static class AffinityPlacementFactory.AffinityPlacementPlugin
extends OrderedNodePlacementPlugin
See
AffinityPlacementFactory for instructions on how to configure a cluster to use this
plugin and details on what the plugin does.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.cluster.placement.plugins.OrderedNodePlacementPlugin
OrderedNodePlacementPlugin.WeightedNode -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<Node, OrderedNodePlacementPlugin.WeightedNode> getBaseWeightedNodes(PlacementContext placementContext, Set<Node> nodes, Iterable<SolrCollection> relevantCollections, boolean skipNodesWithErrors) protected voidverifyDeleteCollection(DeleteCollectionRequest deleteCollectionRequest, PlacementContext placementContext) Methods inherited from class org.apache.solr.cluster.placement.plugins.OrderedNodePlacementPlugin
computeBalancing, computePlacements, getWeightedNodes, verifyAllowedModification, verifyDeleteReplicasMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.cluster.placement.PlacementPlugin
computePlacement
-
Method Details
-
verifyDeleteCollection
protected void verifyDeleteCollection(DeleteCollectionRequest deleteCollectionRequest, PlacementContext placementContext) throws PlacementModificationException - Overrides:
verifyDeleteCollectionin classOrderedNodePlacementPlugin- Throws:
PlacementModificationException
-
getBaseWeightedNodes
protected Map<Node,OrderedNodePlacementPlugin.WeightedNode> getBaseWeightedNodes(PlacementContext placementContext, Set<Node> nodes, Iterable<SolrCollection> relevantCollections, boolean skipNodesWithErrors) throws PlacementException - Specified by:
getBaseWeightedNodesin classOrderedNodePlacementPlugin- Throws:
PlacementException
-