Class PresenceMatrix
java.lang.Object
com.eqixiac.equinix.design.peering.model.PresenceMatrix
A two-dimensional matrix of ASN presence across Equinix metros.
Rows represent target ASNs; columns represent Equinix metros. Each cell is a
PresenceCell containing rich connectivity data (IX peering, Fabric availability,
port capacity, route server participation). The matrix supports both ASN-centric
views ("where is AWS present?") and metro-centric views ("who is present in DC?").
Output Formats
toTableString()- ASCII table for console outputtoDetailedTableString()- ASCII table with capacity annotationstoMarkdown()- Markdown table for reports
- Author:
- ianjones
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCounts how many of the target ASNs have IX peering at each metro.forAsn(long asn) Returns all cells for a given ASN (row view).Returns all cells for a given metro (column view).Gets the cell for a specific ASN at a specific metro.metrosWithAllAsns(Collection<Long> targetAsns) Returns metros where ALL specified ASNs have IX peering presence.metrosWithAnyAsn(Collection<Long> targetAsns) Returns metros where ANY of the specified ASNs have IX peering presence.Renders the matrix as a detailed ASCII table with capacity annotations.Renders the matrix as a Markdown table.Renders the matrix as a compact ASCII table.
-
Constructor Details
-
PresenceMatrix
public PresenceMatrix()
-
-
Method Details
-
get
Gets the cell for a specific ASN at a specific metro.- Parameters:
asn- the autonomous system numbermetro- the Equinix metro code- Returns:
- the presence cell, or
nullif the combination is not in the matrix
-
forAsn
Returns all cells for a given ASN (row view).- Parameters:
asn- the autonomous system number- Returns:
- map of metro -> cell for this ASN, or empty map
-
forMetro
Returns all cells for a given metro (column view).- Parameters:
metro- the Equinix metro code- Returns:
- map of ASN -> cell for this metro
-
metrosWithAllAsns
Returns metros where ALL specified ASNs have IX peering presence.- Parameters:
targetAsns- the ASNs that must all be present- Returns:
- list of metros where all target ASNs peer at Equinix IXes
-
metrosWithAnyAsn
Returns metros where ANY of the specified ASNs have IX peering presence.- Parameters:
targetAsns- the ASNs to check- Returns:
- list of metros where at least one target ASN peers at an Equinix IX
-
asnCountByMetro
-
toTableString
Renders the matrix as a compact ASCII table.- Returns:
- formatted ASCII table with ASNs as rows and metros as columns
-
toDetailedTableString
Renders the matrix as a detailed ASCII table with capacity annotations.- Returns:
- formatted ASCII table with capacity and route server indicators
-
toMarkdown
Renders the matrix as a Markdown table.- Returns:
- Markdown-formatted table
-