Class LatencyObjective
java.lang.Object
com.eqixiac.equinix.design.objective.LatencyObjective
- All Implemented Interfaces:
Objective
Site-weighted round-trip latency from each site to its nearest metro in the portfolio, in ms.
Sites whose latency to every portfolio metro is unknown are left out and the weights of the rest
renormalised; the explanation names them, the worst-case site, and whether its figure is measured.
Unknown when no site latency is known.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleThe round trip that scores 0 when the spec states no latency ceiling, in ms.Fields inherited from interface Objective
COMPLIANCE, COST, LATENCY, PROVIDER_COVERAGE, RESILIENCEModifier and TypeFieldDescriptionstatic final StringShare of the stated compliance and sovereignty zones the portfolio satisfies, 0 to 100.static final StringTotal monthly cost of the portfolio in the spec's currency.static final StringSite-weighted round-trip latency from the sites to their nearest metro in the portfolio, in ms.static final StringShare of the required clouds and service providers reachable from the portfolio, 0 to 100.static final StringHow well the portfolio survives losing a metro or a region, 0 to 100. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(MetroPortfolio portfolio, DesignContext context) Measures a portfolio.id()scale(DesignContext context) A fixed scale: 0 ms scores 100 and the spec's latency ceiling scores 0, or 200.0 ms round trip when the spec states none (an SDK assumption: about where interactive traffic stops feeling local).unit()
-
Field Details
-
DEFAULT_WORST_ROUND_TRIP_MS
public static final double DEFAULT_WORST_ROUND_TRIP_MSThe round trip that scores 0 when the spec states no latency ceiling, in ms.- See Also:
-
-
Constructor Details
-
LatencyObjective
public LatencyObjective()
-
-
Method Details
-
id
- Specified by:
idin interfaceObjective- Returns:
- the id weights refer to (for example
Objective.LATENCY); stable, lower_snake_case
-
direction
-
scale
A fixed scale: 0 ms scores 100 and the spec's latency ceiling scores 0, or 200.0 ms round trip when the spec states none (an SDK assumption: about where interactive traffic stops feeling local). A few milliseconds therefore cost a few points, whatever other options are in the set. -
unit
- Specified by:
unitin interfaceObjective- Returns:
- the unit of
ObjectiveValue.value(), for display (for examplems,USD/month,score)
-
evaluate
Description copied from interface:ObjectiveMeasures a portfolio.- Specified by:
evaluatein interfaceObjective- Parameters:
portfolio- the metros of one candidate designcontext- the facts of this run- Returns:
- the measurement, or
ObjectiveValue.unknown(String)when it cannot be made
-