Record Class AvailabilityAssumptions
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.AvailabilityAssumptions
- Record Components:
availability- fraction per element type, each in (0, 1]; a missing type is taken fromdefaults()source- where the figures came from, shown in every report
public record AvailabilityAssumptions(Map<ElementType, Double> availability, String source)
extends Record
The availability assumed for each kind of element, as a fraction (0.9995 = 99.95%).
These are assumptions, not guarantees. Equinix publishes service levels per
product (Fabric connections, Fabric Cloud Router, Network Edge, colocation) in its product terms,
and each cloud provider publishes its own; the figure that applies to a design is the one in the
contracts that design is bought under. defaults() holds round planning figures chosen by
this SDK so a report can show how redundancy changes the result; they are not Equinix or provider
SLA figures and must be replaced with contractual figures before an availability number is quoted
to anyone. Every report lists the values it used and their source().
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAvailabilityAssumptions(Map<ElementType, Double> availability, String source) Validates every figure and fills missing element types from the defaults. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavailabilityrecord component.static AvailabilityAssumptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleof(ElementType type) source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_SOURCE
-
-
Constructor Details
-
AvailabilityAssumptions
Validates every figure and fills missing element types from the defaults.
-
-
Method Details
-
defaults
- Returns:
- the SDK's planning assumptions (see the class description: not SLAs)
-
of
- Parameters:
type- an element type- Returns:
- its assumed availability
-
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). -
availability
Returns the value of theavailabilityrecord component.- Returns:
- the value of the
availabilityrecord component
-
source
-