Class ConfigExperimentFeatures
- java.lang.Object
- 
- com.google.gerrit.server.experiments.ConfigExperimentFeatures
 
- 
- All Implemented Interfaces:
- ExperimentFeatures
 
 public class ConfigExperimentFeatures extends Object implements ExperimentFeatures An implementation ofExperimentFeaturesthat uses gerrit.config to evaluate the status of the feature.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classConfigExperimentFeatures.Module
 - 
Constructor SummaryConstructors Constructor Description ConfigExperimentFeatures(org.eclipse.jgit.lib.Config gerritServerConfig)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableSet<String>getEnabledExperimentFeatures()Returns the names of the features that are enabled on Gerrit instance (either by default or via gerrit.config).booleanisFeatureEnabled(String featureFlag)Given the name of the feature, returns if it is enabled on the Gerrit server.
 
- 
- 
- 
Method Detail- 
isFeatureEnabledpublic boolean isFeatureEnabled(String featureFlag) Description copied from interface:ExperimentFeaturesGiven the name of the feature, returns if it is enabled on the Gerrit server.Depending on the implementation, it can be more efficient than filtering the results of ExperimentFeatures.getEnabledExperimentFeatures().- Specified by:
- isFeatureEnabledin interface- ExperimentFeatures
- Parameters:
- featureFlag- the name of the feature to test.
- Returns:
- if the feature is enabled.
 
 - 
getEnabledExperimentFeaturespublic com.google.common.collect.ImmutableSet<String> getEnabledExperimentFeatures() Description copied from interface:ExperimentFeaturesReturns the names of the features that are enabled on Gerrit instance (either by default or via gerrit.config).- Specified by:
- getEnabledExperimentFeaturesin interface- ExperimentFeatures
 
 
- 
 
-