Record Class WorkloadAvailability
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.WorkloadAvailability
- Record Components:
workload- the workload labelcoreAvailability- fraction of time it runs with every cloud it needs reachable (hosts, routers, connections, on-ramps, backbone, cloud regions)endToEndAvailability-coreAvailabilitytimes the site-weighted availability of the sites' access circuitspercent-endToEndAvailabilityas a percentagedowntimeMinutesPerYear- expected downtime per year implied byendToEndAvailability(365.25-day year, 525,960 minutes)formula- the series/parallel composition used, in wordsnotes- approximations made for this workload
public record WorkloadAvailability(String workload, double coreAvailability, double endToEndAvailability, double percent, double downtimeMinutesPerYear, String formula, List<String> notes)
extends Record
The estimated availability of one workload, composed from
AvailabilityAssumptions over the
graph's redundant paths. An estimate under stated assumptions, never a guarantee or an SLA.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleMinutes in a 365.25-day year. -
Constructor Summary
ConstructorsConstructorDescriptionWorkloadAvailability(String workload, double coreAvailability, double endToEndAvailability, double percent, double downtimeMinutesPerYear, String formula, List<String> notes) Makesnotesimmutable. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thecoreAvailabilityrecord component.doubleReturns the value of thedowntimeMinutesPerYearrecord component.doubleReturns the value of theendToEndAvailabilityrecord component.final booleanIndicates whether some other object is "equal to" this one.formula()Returns the value of theformularecord component.final inthashCode()Returns a hash code value for this object.notes()Returns the value of thenotesrecord component.doublepercent()Returns the value of thepercentrecord component.final StringtoString()Returns a string representation of this record class.workload()Returns the value of theworkloadrecord component.
-
Field Details
-
MINUTES_PER_YEAR
public static final double MINUTES_PER_YEARMinutes in a 365.25-day year.- See Also:
-
-
Constructor Details
-
WorkloadAvailability
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
workload
-
coreAvailability
public double coreAvailability()Returns the value of thecoreAvailabilityrecord component.- Returns:
- the value of the
coreAvailabilityrecord component
-
endToEndAvailability
public double endToEndAvailability()Returns the value of theendToEndAvailabilityrecord component.- Returns:
- the value of the
endToEndAvailabilityrecord component
-
percent
-
downtimeMinutesPerYear
public double downtimeMinutesPerYear()Returns the value of thedowntimeMinutesPerYearrecord component.- Returns:
- the value of the
downtimeMinutesPerYearrecord component
-
formula
-
notes
-