Class Constraints
java.lang.Object
com.eqixiac.equinix.design.constraint.Constraints
Chooses the built-in constraints a spec needs, and shared helpers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<Constraint> forSpec(DesignSpec spec) The built-in constraints for a spec: one per field ofDesignConstraintsthat 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, andEveryMetroUsedConstraintalways.
-
Method Details
-
forSpec
The built-in constraints for a spec: one per field ofDesignConstraintsthat 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, andEveryMetroUsedConstraintalways.- Parameters:
spec- the design- Returns:
- the constraints, in a fixed order
-