Class CentralizedManifest

java.lang.Object
com.amazonaws.xray.strategy.sampling.manifest.CentralizedManifest
All Implemented Interfaces:
Manifest

public class CentralizedManifest
extends java.lang.Object
implements Manifest
  • Constructor Summary

    Constructors
    Constructor Description
    CentralizedManifest()  
  • Method Summary

    Modifier and Type Method Description
    @Nullable CentralizedRule getDefaultRule()  
    java.util.LinkedHashMap<java.lang.String,​CentralizedRule> getRules()  
    boolean isExpired​(java.time.Instant now)  
    @Nullable Rule match​(SamplingRequest req, java.time.Instant now)  
    void putRules​(java.util.List<com.amazonaws.services.xray.model.SamplingRule> inputs, java.time.Instant now)  
    void putTargets​(java.util.List<com.amazonaws.services.xray.model.SamplingTargetDocument> targets, java.time.Instant now)  
    int size()  
    java.util.List<com.amazonaws.services.xray.model.SamplingStatisticsDocument> snapshots​(java.time.Instant now)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CentralizedManifest

      public CentralizedManifest()
  • Method Details

    • getRules

      public java.util.LinkedHashMap<java.lang.String,​CentralizedRule> getRules()
    • getDefaultRule

      public @Nullable CentralizedRule getDefaultRule()
    • isExpired

      public boolean isExpired​(java.time.Instant now)
    • size

      public int size()
    • match

      public @Nullable Rule match​(SamplingRequest req, java.time.Instant now)
      Specified by:
      match in interface Manifest
    • putRules

      public void putRules​(java.util.List<com.amazonaws.services.xray.model.SamplingRule> inputs, java.time.Instant now)
    • snapshots

      public java.util.List<com.amazonaws.services.xray.model.SamplingStatisticsDocument> snapshots​(java.time.Instant now)
    • putTargets

      public void putTargets​(java.util.List<com.amazonaws.services.xray.model.SamplingTargetDocument> targets, java.time.Instant now)