Record Class ResilienceOptions
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.ResilienceOptions
- Record Components:
accessHoming- how many portfolio metros each site has an access circuit into: its nearest metro (primary) and the next ones (standby). Default 2 (dual-homed), an assumption the spec cannot state todaystandbyCapacityFraction- the share of a workload's bandwidth its standby cloud connection is provisioned for, 0..1. Default 1.0, which is how theWorkloadPlacersizes standby legsmaxPairScenarios- most pairwise (N-2) scenarios simulated; above it the pairs are taken in a fixed order and the report says how many were left out. Default 2000availability- availability assumptions; defaultAvailabilityAssumptions.defaults()
public record ResilienceOptions(Integer accessHoming, Double standbyCapacityFraction, Integer maxPairScenarios, AvailabilityAssumptions availability)
extends Record
How a design graph is built and simulated. Every field has a stated default;
null takes it.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefaultaccessHoming().static final intDefaultmaxPairScenarios(). -
Constructor Summary
ConstructorsConstructorDescriptionResilienceOptions(Integer accessHoming, Double standbyCapacityFraction, Integer maxPairScenarios, AvailabilityAssumptions availability) Applies the defaults and validates ranges. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessHomingrecord component.Returns the value of theavailabilityrecord component.static ResilienceOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaxPairScenariosrecord component.Returns the value of thestandbyCapacityFractionrecord component.final StringtoString()Returns a string representation of this record class.withAccessHoming(int homing) withAvailability(AvailabilityAssumptions assumptions) withMaxPairScenarios(int max) withStandbyCapacityFraction(double fraction)
-
Field Details
-
DEFAULT_ACCESS_HOMING
-
DEFAULT_MAX_PAIRS
-
-
Constructor Details
-
ResilienceOptions
public ResilienceOptions(Integer accessHoming, Double standbyCapacityFraction, Integer maxPairScenarios, AvailabilityAssumptions availability) Applies the defaults and validates ranges.
-
-
Method Details
-
defaults
- Returns:
- every default
-
withStandbyCapacityFraction
- Parameters:
fraction- the standby provisioning share, 0..1- Returns:
- a copy with it
-
withAccessHoming
- Parameters:
homing- access circuits per site- Returns:
- a copy with it
-
withMaxPairScenarios
- Parameters:
max- most pairwise scenarios- Returns:
- a copy with it
-
withAvailability
- Parameters:
assumptions- availability assumptions- Returns:
- a copy with them
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
accessHoming
Returns the value of theaccessHomingrecord component.- Returns:
- the value of the
accessHomingrecord component
-
standbyCapacityFraction
Returns the value of thestandbyCapacityFractionrecord component.- Returns:
- the value of the
standbyCapacityFractionrecord component
-
maxPairScenarios
Returns the value of themaxPairScenariosrecord component.- Returns:
- the value of the
maxPairScenariosrecord component
-
availability
Returns the value of theavailabilityrecord component.- Returns:
- the value of the
availabilityrecord component
-