Class MaxSiteLatencyConstraint

java.lang.Object
com.eqixiac.equinix.design.constraint.MaxSiteLatencyConstraint
All Implemented Interfaces:
Constraint

public final class MaxSiteLatencyConstraint extends Object implements Constraint
Every site's round trip to its nearest portfolio metro must be within constraints.maxLatencyMs. A site whose latency to every portfolio metro is unknown cannot be checked: it is not counted against the limit, and the verdict names it. With no evaluable site the limit is reported as not applied.
  • Field Details

  • Constructor Details

    • MaxSiteLatencyConstraint

      public MaxSiteLatencyConstraint()
  • Method Details

    • id

      public String id()
      Specified by:
      id in interface Constraint
      Returns:
      a stable id, lower_snake_case (for example max_latency)
    • check

      public ConstraintVerdict check(MetroPortfolio portfolio, DesignContext context)
      Description copied from interface: Constraint
      Checks a whole portfolio.
      Specified by:
      check in interface Constraint
      Parameters:
      portfolio - the candidate design
      context - the facts of this run
      Returns:
      the verdict with its reason