Package com.yahoo.vespa.model.content
Class IndexedHierarchicDistributionValidator
- java.lang.Object
-
- com.yahoo.vespa.model.content.IndexedHierarchicDistributionValidator
-
public class IndexedHierarchicDistributionValidator extends java.lang.Object
Class used to validate that hierarchic distribution is correctly setup when having an indexed content cluster. Note that this class does not implement the com.yahoo.vespa.model.application.validation.Validator interface, but is instead used in the context of com.yahoo.vespa.model.ConfigProducer.validate() such that it can be unit tested without having to build the complete vespa model.- Author:
- geirst
-
-
Constructor Summary
Constructors Constructor Description IndexedHierarchicDistributionValidator(java.lang.String clusterName, StorageGroup rootGroup, Redundancy redundancy, DispatchTuning.DispatchPolicy dispatchPolicy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
static void
validateThatLeafGroupsCountIsAFactorOfRedundancy(java.lang.String clusterName, int totalRedundancy, int subGroups)
static void
validateThatReadyCopiesIsCompatibleWithRedundancy(java.lang.String clusterName, int totalRedundancy, int totalReadyCopies, int groupCount)
-
-
-
Constructor Detail
-
IndexedHierarchicDistributionValidator
public IndexedHierarchicDistributionValidator(java.lang.String clusterName, StorageGroup rootGroup, Redundancy redundancy, DispatchTuning.DispatchPolicy dispatchPolicy)
-
-
Method Detail
-
validate
public void validate()
-
validateThatLeafGroupsCountIsAFactorOfRedundancy
public static void validateThatLeafGroupsCountIsAFactorOfRedundancy(java.lang.String clusterName, int totalRedundancy, int subGroups)
-
validateThatReadyCopiesIsCompatibleWithRedundancy
public static void validateThatReadyCopiesIsCompatibleWithRedundancy(java.lang.String clusterName, int totalRedundancy, int totalReadyCopies, int groupCount)
-
-