| Package | Description |
|---|---|
| com.cloudera.gertrude | |
| com.cloudera.gertrude.calculate | |
| com.cloudera.gertrude.condition | |
| com.cloudera.gertrude.server | |
| com.cloudera.gertrude.space |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Condition<S extends ExperimentState>
Determines a true or false value for a given
ExperimentState. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractExperimentState
Abstract base class that implements the core functionality of the
ExperimentState interface. |
| Modifier and Type | Field and Description |
|---|---|
static Condition<ExperimentState> |
Condition.FALSE
A
Condition instance that is always false. |
static Condition<ExperimentState> |
Condition.TRUE
A
Condition instance that is always true. |
| Modifier and Type | Method and Description |
|---|---|
Condition<ExperimentState> |
ConditionFactory.create(String name)
Creates a new
Condition instance that is associated with the given name. |
| Modifier and Type | Method and Description |
|---|---|
FlagValue<T> |
FlagValueCalculator.apply(ExperimentState state)
Compute the value of this flag for the given
ExperimentState. |
void |
Layer.assign(ExperimentState state,
List<DiversionCriterion> diversionCriteria,
Map<String,FlagValueCalculator<Object>> overrides,
Set<Integer> newExperimentIds)
Assign the given state to a
Segment of this Layer based on the given diversionCriteria
and update the overrides and set of newExperimentIds based on the settings in that Segment. |
void |
Segment.handle(ExperimentState state,
List<DiversionCriterion> diversionCriteria,
Map<String,FlagValueCalculator<Object>> overrides,
Set<Integer> newExperimentIds)
Modify the given
overrides and update newExperimentIds with the ids of any experiments
that this request was diverted into. |
boolean |
Segment.isValidFor(ExperimentState state)
Returns true if the given
ExperimentState satisfies the Condition instances associated with
this Segment. |
| Modifier and Type | Method and Description |
|---|---|
FlagValue<T> |
FlagValueCalculatorImpl.apply(ExperimentState state) |
void |
Modifier.apply(FlagValue<T> baseValue,
ExperimentState state) |
void |
BasicModifier.apply(FlagValue<T> baseValue,
ExperimentState state) |
| Constructor and Description |
|---|
BasicModifier(T value,
AssociativeOperator<? super T> operator,
Condition<ExperimentState> condition) |
BasicModifier(T value,
AssociativeOperator<? super T> operator,
Condition<ExperimentState> condition,
List<Modifier<T>> modifiers) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractPropertyCondition<V,S extends ExperimentState>
A base class for the common
Condition pattern of checking whether or not the value of a field
in an ExperimentState belongs to a given set of values. |
| Modifier and Type | Method and Description |
|---|---|
static <S extends ExperimentState> |
BooleanConditions.and(List<Condition<S>> conditions) |
static <S extends ExperimentState> |
BooleanConditions.not(Condition<S> condition) |
static <S extends ExperimentState> |
BooleanConditions.or(List<Condition<S>> conditions) |
| Modifier and Type | Method and Description |
|---|---|
Condition<ExperimentState> |
ReflectionConditionFactory.create(String name) |
Condition<ExperimentState> |
CompositeConditionFactory.create(String name) |
| Modifier and Type | Method and Description |
|---|---|
ReflectionConditionFactory |
ReflectionConditionFactory.register(String name,
Class<? extends Condition<ExperimentState>> clazz) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
HttpServletExperimentState
An extension to the
ExperimentState interface that can be implemented by any concrete subclass of
AbstractExperimentState that can return a HttpServletRequest object. |
| Modifier and Type | Method and Description |
|---|---|
static ExperimentState |
GertrudeUtils.getState(javax.servlet.ServletRequest request)
Retrieves a
HttpServletExperimentState from a ServletRequest. |
| Modifier and Type | Method and Description |
|---|---|
protected Condition<ExperimentState> |
AvroExperimentSpaceDeserializer.getCondition(List<ConditionDefinition> definitions,
ConditionOperator operator) |
| Modifier and Type | Method and Description |
|---|---|
void |
LayerImpl.assign(ExperimentState state,
List<DiversionCriterion> diversionCriteria,
Map<String,FlagValueCalculator<Object>> overrides,
Set<Integer> newExperimentIds) |
void |
ExperimentInfo.handle(ExperimentState state,
List<DiversionCriterion> diversionCriteria,
Map<String,FlagValueCalculator<Object>> overrides,
Set<Integer> newExperimentIds) |
void |
Domain.handle(ExperimentState state,
List<DiversionCriterion> diversionCriteria,
Map<String,FlagValueCalculator<Object>> overrides,
Set<Integer> newExperimentIds) |
boolean |
SegmentInfo.isValidFor(ExperimentState state) |
boolean |
ExperimentInfo.isValidFor(ExperimentState state) |
boolean |
Domain.isValidFor(ExperimentState state) |
| Constructor and Description |
|---|
SegmentInfo(int id,
int layerId,
int diversionId,
SortedSet<Integer> buckets,
Condition<ExperimentState> condition,
long startTimeMsec,
long endTimeMsec,
long prePeriodTimeMsec,
long postPeriodTimeMsec) |
Copyright © 2013. All rights reserved.