Package org.apache.solr.core
Class CoreSorter
- java.lang.Object
-
- org.apache.solr.core.CoreSorter
-
public class CoreSorter extends Object
This is a utility class that sorts cores in such a way as to minimize other cores waiting for replicas in the current node. This helps in avoiding leaderVote timeouts happening in other nodes of the cluster
-
-
Constructor Summary
Constructors Constructor Description CoreSorter(CoreContainer cc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CoreDescriptor>
sort(List<CoreDescriptor> cds)
-
-
-
Constructor Detail
-
CoreSorter
public CoreSorter(CoreContainer cc)
-
-
Method Detail
-
sort
public List<CoreDescriptor> sort(List<CoreDescriptor> cds)
-
-