Record Class PlacementPlan.Placement

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.placement.PlacementPlan.Placement
Record Components:
workload - the workload label (or cloud:<id> for a cloud no workload refers to)
primary - the metro it runs in, or null when it could not be placed
standby - the metro its standby connections are in, or null for none
clouds - the cloud ids it connects to
bandwidthMbps - the workload's bandwidth, or null when unsized
reasoning - why it was placed there
issues - what the placement could not honour (pinned metro outside the portfolio, a latency limit no metro meets, a cloud no eligible metro reaches)
Enclosing class:
PlacementPlan

public static record PlacementPlan.Placement(String workload, MetroId primary, MetroId standby, List<String> clouds, Integer bandwidthMbps, String reasoning, List<String> issues) extends Record
Where one workload runs.
  • Constructor Details

  • Method Details

    • 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.
    • workload

      public String workload()
      Returns the value of the workload record component.
      Returns:
      the value of the workload record component
    • primary

      public MetroId primary()
      Returns the value of the primary record component.
      Returns:
      the value of the primary record component
    • standby

      public MetroId standby()
      Returns the value of the standby record component.
      Returns:
      the value of the standby record component
    • clouds

      public List<String> clouds()
      Returns the value of the clouds record component.
      Returns:
      the value of the clouds record component
    • bandwidthMbps

      public Integer bandwidthMbps()
      Returns the value of the bandwidthMbps record component.
      Returns:
      the value of the bandwidthMbps record component
    • reasoning

      public String reasoning()
      Returns the value of the reasoning record component.
      Returns:
      the value of the reasoning record component
    • issues

      public List<String> issues()
      Returns the value of the issues record component.
      Returns:
      the value of the issues record component