Package | Description |
---|---|
com.cloudera.gertrude | |
com.cloudera.gertrude.deploy | |
com.cloudera.gertrude.server |
Modifier and Type | Method and Description |
---|---|
static ExperimentFlag<Boolean> |
Experiments.declare(String name,
boolean defaultValue)
Declares a boolean experiment flag with the given name and default value.
|
static ExperimentFlag<Double> |
Experiments.declare(String name,
double defaultValue)
Declares a double experiment flag with the given name and default value.
|
static ExperimentFlag<Long> |
Experiments.declare(String name,
long defaultValue)
Declares a long experiment flag with the given name and default value.
|
static ExperimentFlag<String> |
Experiments.declare(String name,
String defaultValue)
Declares a string experiment flag with the given name and default value.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,ExperimentFlag<?>> |
ExperimentSpaceDeserializer.getExperimentFlags() |
Modifier and Type | Method and Description |
---|---|
<T> T |
ExperimentState.get(ExperimentFlag<T> flag)
Returns the value of the given
ExperimentFlag for this ExperimentState . |
<T> T |
AbstractExperimentState.get(ExperimentFlag<T> flag) |
float |
ExperimentState.getFloat(ExperimentFlag<Double> doubleFlag)
A convenience method for acccessing the value of a
ExperimentFlag<Double> as a float . |
float |
AbstractExperimentState.getFloat(ExperimentFlag<Double> doubleFlag) |
int |
ExperimentState.getInt(ExperimentFlag<Long> longFlag)
A convenience method for acccessing the value of a
ExperimentFlag<Long> as an int . |
int |
AbstractExperimentState.getInt(ExperimentFlag<Long> longFlag) |
Modifier and Type | Method and Description |
---|---|
void |
ExperimentSpaceDeserializer.initialize(Map<String,ExperimentFlag<?>> experimentFlags,
ConditionFactory conditionFactory)
Initialize this instance with the compiled experiment flags and
ConditionFactory needed to
validate and parse the serialized ExperimentSpace . |
Modifier and Type | Method and Description |
---|---|
Map<String,ExperimentFlag<?>> |
ExperimentFlagSupport.getExperimentFlags() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
GertrudeUtils.getFlagValue(javax.servlet.ServletRequest request,
ExperimentFlag<T> flag)
Shortcut for getting the value of an
ExperimentFlag from a ServletRequest that
contains an ExperimentState . |
Copyright © 2013. All rights reserved.