Class CentralizedRule
java.lang.Object
com.amazonaws.xray.strategy.sampling.rule.CentralizedRule
- All Implemented Interfaces:
Rule
,Comparable<CentralizedRule>
Represents a customer-defined sampling rule. A rule contains the matchers
required to determine if an incoming request can use the rule, and sampling
targets which determine the sampling behavior once a request has been
matched.
A rule also maintains usage statistics which are periodically reported to
X-Ray.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCentralizedRule
(com.amazonaws.services.xray.model.SamplingRule input, Rand rand) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(CentralizedRule other) boolean
getName()
int
hashCode()
boolean
static boolean
isValid
(com.amazonaws.services.xray.model.SamplingRule rule) boolean
com.amazonaws.services.xray.model.SamplingStatisticsDocument
boolean
update
(com.amazonaws.services.xray.model.SamplingRule i) void
-
Field Details
-
DEFAULT_RULE_NAME
- See Also:
-
-
Constructor Details
-
CentralizedRule
-
-
Method Details
-
update
public boolean update(com.amazonaws.services.xray.model.SamplingRule i) -
isStale
-
isValid
public static boolean isValid(com.amazonaws.services.xray.model.SamplingRule rule) -
update
-
snapshot
-
match
-
sample
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CentralizedRule>
-
getName
-
equals
-
hashCode
public int hashCode()
-