Class Constraints

java.lang.Object
com.eqixiac.equinix.design.constraint.Constraints

public final class Constraints extends Object
Chooses the built-in constraints a spec needs, and shared helpers.
  • Method Details

    • forSpec

      public static List<Constraint> forSpec(DesignSpec spec)
      The built-in constraints for a spec: one per field of DesignConstraints that is set, the workload rules (pinned metro, per-workload latency, cloud reachability) when the spec has workloads or required clouds, the budget when one is stated, and EveryMetroUsedConstraint always.
      Parameters:
      spec - the design
      Returns:
      the constraints, in a fixed order