Class CatalogDesignContext.Builder
java.lang.Object
com.eqixiac.equinix.design.optimizer.context.CatalogDesignContext.Builder
- Enclosing class:
CatalogDesignContext
Assembles a
CatalogDesignContext. Not thread-safe.-
Method Summary
Modifier and TypeMethodDescriptionbuild()calibration(RouteFactorCalibration calibration) Overrides the route factor; by default it is fitted from the measured pairs given.measuredLatency(String a, String b, double roundTripMs) Records a Fabric-measured round trip (both directions).metro(MetroFacts facts) providerAvailability(MetroId metro, String cloudId, ProviderAvailability availability) Records the service profile chosen for a cloud at a metro and marks the cloud reachable there.
-
Method Details
-
metro
- Parameters:
facts- a catalogue metro- Returns:
- this builder
-
metro
public CatalogDesignContext.Builder metro(String code, Region region, Double latitude, Double longitude, String... geoZones) - Parameters:
code- metro coderegion- region, may benulllatitude- decimal degrees, may benulllongitude- decimal degrees, may benullgeoZones- geo scopes / zones the metro belongs to- Returns:
- this builder
-
measuredLatency
Records a Fabric-measured round trip (both directions).- Parameters:
a- one metro codeb- the other metro coderoundTripMs- Fabric'savgLatency- Returns:
- this builder
-
reachable
- Parameters:
metro- metro codecloudIds- spec cloud ids reachable privately from the metro- Returns:
- this builder
-
providerAvailability
public CatalogDesignContext.Builder providerAvailability(MetroId metro, String cloudId, ProviderAvailability availability) Records the service profile chosen for a cloud at a metro and marks the cloud reachable there.- Parameters:
metro- the metrocloudId- the spec cloud idavailability- the chosen profile- Returns:
- this builder
-
costModel
- Parameters:
model- the cost model- Returns:
- this builder
-
asOf
- Parameters:
asOf- when the facts were gathered- Returns:
- this builder
-
calibration
Overrides the route factor; by default it is fitted from the measured pairs given.- Parameters:
calibration- the calibration- Returns:
- this builder
-
note
- Parameters:
note- a statement about how complete the facts are- Returns:
- this builder
-
build
- Returns:
- the context
-