Record Class PlacementView
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.PlacementView
- Record Components:
workload- the workload label (orcloud:<id>for a cloud no workload names)primary- metro code it runs in, ornullwhen it could not be placedstandby- metro code it fails over to, ornullfor noneclouds- spec cloud ids it must reachbandwidthMbps- its demand in Mbps, ornullwhen unsized (no capacity check is possible)maxLatencyMs- its round-trip limit from every site, ornullcloudOnly-truefor the placement made for a cloud no workload names
public record PlacementView(String workload, String primary, String standby, List<String> clouds, Integer bandwidthMbps, Double maxLatencyMs, boolean cloudOnly)
extends Record
A workload as the graph sees it: where it runs, where it fails over to and what it needs. Copied
from the
PlacementPlan so a graph is self-contained.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebandwidthMbpsrecord component.booleanReturns the value of thecloudOnlyrecord component.clouds()Returns the value of thecloudsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaxLatencyMsrecord component.nodeId()primary()Returns the value of theprimaryrecord component.standby()Returns the value of thestandbyrecord component.final StringtoString()Returns a string representation of this record class.workload()Returns the value of theworkloadrecord component.
-
Constructor Details
-
PlacementView
-
-
Method Details
-
nodeId
- Returns:
- the graph node id of this workload
-
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
-
-
standby
-
clouds
-
bandwidthMbps
Returns the value of thebandwidthMbpsrecord component.- Returns:
- the value of the
bandwidthMbpsrecord component
-
maxLatencyMs
Returns the value of themaxLatencyMsrecord component.- Returns:
- the value of the
maxLatencyMsrecord component
-
cloudOnly
-