Class WorkloadLatencyConstraint

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

public final class WorkloadLatencyConstraint extends Object implements Constraint
Each workload with a maxLatencyMs must be placed (by WorkloadPlacer) in a metro whose worst known round trip to any site is within the limit. Unknown site latencies are not counted.
  • Field Details

  • Constructor Details

    • WorkloadLatencyConstraint

      public WorkloadLatencyConstraint()
  • 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