public class Evaluator
extends java.lang.Object
| Constructor and Description |
|---|
Evaluator() |
| Modifier and Type | Method and Description |
|---|---|
Evaluator |
addGroupSubscriptions(java.lang.String group,
java.util.List<Subscription> subs)
Add subscriptions for a given group.
|
EvalPayload |
eval(java.lang.String group,
long timestamp,
java.util.List<TagsValuePair> vs)
Evaluate expressions for all subscriptions associated with the specified group using
the provided data.
|
Evaluator |
removeGroupSubscriptions(java.lang.String group)
Remove subscriptions for a given group.
|
Evaluator |
sync(java.util.Map<java.lang.String,java.util.List<Subscription>> subs)
Synchronize the internal set of subscriptions with the map that is passed in.
|
public Evaluator sync(java.util.Map<java.lang.String,java.util.List<Subscription>> subs)
subs - Complete set of subscriptions for all groups. The keys for the map are the
group names.public Evaluator addGroupSubscriptions(java.lang.String group, java.util.List<Subscription> subs)
group - Name of the group. At Netflix this is typically the cluster that includes
the instance reporting data.subs - Set of subscriptions for the group.public Evaluator removeGroupSubscriptions(java.lang.String group)
group - Name of the group. At Netflix this is typically the cluster that includes
the instance reporting data.public EvalPayload eval(java.lang.String group, long timestamp, java.util.List<TagsValuePair> vs)
group - Name of the group. At Netflix this is typically the cluster that includes
the instance reporting data.timestamp - Timestamp to use for the payload response.vs - Set of values received for the group for the current time period.