Record Class DesignDecisionRecord.Availability
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Availability
- Record Components:
workload- the workloadpercent- end-to-end availability, percentdowntimeMinutesPerYear- the implied downtimeformula- the series/parallel composition used
- Enclosing class:
DesignDecisionRecord
-
Constructor Summary
ConstructorsConstructorDescriptionAvailability(String workload, double percent, double downtimeMinutesPerYear, String formula) Creates an instance of aAvailabilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedowntimeMinutesPerYearrecord 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.doublepercent()Returns the value of thepercentrecord component.final StringtoString()Returns a string representation of this record class.workload()Returns the value of theworkloadrecord component.
-
Constructor Details
-
Availability
Creates an instance of aAvailabilityrecord class.- Parameters:
workload- the value for theworkloadrecord componentpercent- the value for thepercentrecord componentdowntimeMinutesPerYear- the value for thedowntimeMinutesPerYearrecord componentformula- the value for theformularecord component
-
-
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
-
percent
-
downtimeMinutesPerYear
public double downtimeMinutesPerYear()Returns the value of thedowntimeMinutesPerYearrecord component.- Returns:
- the value of the
downtimeMinutesPerYearrecord component
-
formula
-