Class ProviderConnectivityMap

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

public class ProviderConnectivityMap extends Object
Maps each recommended metro to the providers available there.
  • Constructor Details

    • ProviderConnectivityMap

      public ProviderConnectivityMap()
  • Method Details

    • forMetro

      public List<ProviderAvailability> forMetro(MetroId metro)
      The availability entries for one metro.
      Parameters:
      metro - the metro to look up
      Returns:
      the metro's provider entries, or an empty list for a metro not in the map
    • isAvailable

      public boolean isAvailable(MetroId metro, String providerLabel)
      Whether the named provider is available at the metro.

      The label is matched by exact, case-sensitive equality against each entry's provider label, which is the requirement's displayLabel() - the custom label if one was set, else the CloudProviderType provider name, else the service profile name/uuid. Pass that same label; a lowercase or partial name matches nothing.

      Parameters:
      metro - the metro to check
      providerLabel - the requirement's display label
      Returns:
      true when an available entry with exactly that label exists at the metro