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 from defaults()
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 Details

  • Constructor Details

    • AvailabilityAssumptions

      public AvailabilityAssumptions(Map<ElementType, Double> availability, String source)
      Validates every figure and fills missing element types from the defaults.
  • Method Details

    • defaults

      public static AvailabilityAssumptions defaults()
      Returns:
      the SDK's planning assumptions (see the class description: not SLAs)
    • of

      public double of(ElementType type)
      Parameters:
      type - an element type
      Returns:
      its assumed availability
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • availability

      public Map<ElementType, Double> availability()
      Returns the value of the availability record component.
      Returns:
      the value of the availability record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component