| Constructor and Description |
|---|
LayerImpl(LayerInfo info,
com.google.common.hash.HashFunction hash,
Set<Integer> segmentIds,
Map<Integer,NavigableMap<Integer,Set<Segment>>> segmentsByDiversionBuckets,
Random random) |
| Modifier and Type | Method and Description |
|---|---|
void |
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. |
boolean |
isLaunchLayer()
Returns true if this is a launch layer instance, whose experiments have priority over other layers for overriding
flag value calculations.
|
public boolean isLaunchLayer()
LayerisLaunchLayer in interface Layerpublic void assign(ExperimentState state, List<DiversionCriterion> diversionCriteria, Map<String,FlagValueCalculator<Object>> overrides, Set<Integer> newExperimentIds)
LayerSegment of this Layer based on the given diversionCriteria
and update the overrides and set of newExperimentIds based on the settings in that Segment.assign in interface Layerstate - the ExperimentState undergoing diversiondiversionCriteria - the configured DiversionCriterion applied to the stateoverrides - the current set of overrides to the default FlagValueCalculator instancesnewExperimentIds - the list of new experiment ids this state will be added toCopyright © 2013. All rights reserved.