Class DeploymentTopology

java.lang.Object
com.eqixiac.equinix.design.optimizer.model.DeploymentTopology

public class DeploymentTopology extends Object
The recommended deployment topology: which workloads are placed in which metros.
  • Constructor Details

    • DeploymentTopology

      public DeploymentTopology()
  • Method Details

    • forMetro

      public List<WorkloadPlacement> forMetro(MetroId metro)
      Returns the placements assigned to the given metro.

      Metros are compared by value, not by identity. MetroId is a value type whose factories allocate a fresh instance per call (MetroId.of("DC") twice yields two equal-but-distinct objects, and Metro.metroId() re-derives one on every invocation), so an identity comparison here matched nothing against live data: every recommendation came back with no assigned workloads and the Deployment Wizard silently fell back to its default per-connection bandwidth while reporting that it had summed the workloads.

      Parameters:
      metro - the metro to select placements for; null yields an empty list
      Returns:
      the placements assigned to that metro, in declaration order; never null
    • summary

      public String summary()
      Renders the placement list grouped by metro, in first-placement order so the same topology always renders the same way.