Record Class WorkloadOutcome
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.WorkloadOutcome
- Record Components:
workload- the workload labelstatus- how it faresactiveMetro- the metro it runs in during the scenario, ornullwhen no host survivesfailedOver-truewhen it runs in its standby metro- share (0..1) of the site weight with a known path that still reaches it within its limits- share (0..1) of its bandwidth its cloud connections still carry (1 when it needs no cloud or a capacity is unknown; 0 for a cloud it cannot reach)serviceIndex-siteShare x capacityShare: the share of the workload still servedsitePaths- per site: the path taken and its round trip, orunreachablecloudPaths- per cloud: the connection used, the path and its round trip, orunreachableworstSiteLatencyMs- the worst known round trip from a site that reaches it, ornullwhen none is knownissues- what it lost, in words
public record WorkloadOutcome(String workload, WorkloadStatus status, String activeMetro, boolean failedOver, double siteShare, double capacityShare, double serviceIndex, Map<String,String> sitePaths, Map<String,String> cloudPaths, Double worstSiteLatencyMs, List<String> issues)
extends Record
What happens to one workload in one scenario.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkloadOutcome(String workload, WorkloadStatus status, String activeMetro, boolean failedOver, double siteShare, double capacityShare, double serviceIndex, Map<String, String> sitePaths, Map<String, String> cloudPaths, Double worstSiteLatencyMs, List<String> issues) Makes the collections immutable and insertion-ordered. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveMetrorecord component.doubleReturns the value of thecapacitySharerecord component.Returns the value of thecloudPathsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefailedOverrecord component.final inthashCode()Returns a hash code value for this object.issues()Returns the value of theissuesrecord component.doubleReturns the value of theserviceIndexrecord component.Returns the value of thesitePathsrecord component.doubleReturns the value of thesiteSharerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.workload()Returns the value of theworkloadrecord component.Returns the value of theworstSiteLatencyMsrecord component.
-
Constructor Details
-
WorkloadOutcome
public WorkloadOutcome(String workload, WorkloadStatus status, String activeMetro, boolean failedOver, double siteShare, double capacityShare, double serviceIndex, Map<String, String> sitePaths, Map<String, String> cloudPaths, Double worstSiteLatencyMs, List<String> issues) Makes the collections immutable and insertion-ordered.
-
-
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
-
status
-
activeMetro
Returns the value of theactiveMetrorecord component.- Returns:
- the value of the
activeMetrorecord component
-
failedOver
public boolean failedOver()Returns the value of thefailedOverrecord component.- Returns:
- the value of the
failedOverrecord component
-
serviceIndex
public double serviceIndex()Returns the value of theserviceIndexrecord component.- Returns:
- the value of the
serviceIndexrecord component
-
sitePaths
-
cloudPaths
Returns the value of thecloudPathsrecord component.- Returns:
- the value of the
cloudPathsrecord component
-
worstSiteLatencyMs
Returns the value of theworstSiteLatencyMsrecord component.- Returns:
- the value of the
worstSiteLatencyMsrecord component
-
issues
-