Interface Assign.AssignStrategy

  • All Known Implementing Classes:
    PlacementPluginAssignStrategy
    Enclosing class:
    Assign

    public static interface Assign.AssignStrategy
    Strategy for assigning replicas to nodes.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      List<org.apache.solr.common.cloud.ReplicaPosition> assign​(org.apache.solr.client.solrj.cloud.SolrCloudManager solrCloudManager, List<Assign.AssignRequest> assignRequests)
      Assign new replicas to nodes.
      default List<org.apache.solr.common.cloud.ReplicaPosition> assign​(org.apache.solr.client.solrj.cloud.SolrCloudManager solrCloudManager, Assign.AssignRequest... assignRequests)
      Assign new replicas to nodes.
      default Map<org.apache.solr.common.cloud.Replica,​String> computeReplicaBalancing​(org.apache.solr.client.solrj.cloud.SolrCloudManager solrCloudManager, Set<String> nodes, int maxBalanceSkew)
      Balance replicas across nodes.
      default void verifyDeleteCollection​(org.apache.solr.client.solrj.cloud.SolrCloudManager solrCloudManager, org.apache.solr.common.cloud.DocCollection collection)
      Verify that deleting a collection doesn't violate the replica assignment constraints.
      default void verifyDeleteReplicas​(org.apache.solr.client.solrj.cloud.SolrCloudManager solrCloudManager, org.apache.solr.common.cloud.DocCollection collection, String shardName, Set<org.apache.solr.common.cloud.Replica> replicas)
      Verify that deleting these replicas doesn't violate the replica assignment constraints.