Enum Class PeeringPolicy
- All Implemented Interfaces:
Serializable, Comparable<PeeringPolicy>, Constable
Peering policy classification from PeeringDB's
policy_general field.
A network's peering policy dramatically affects whether peering can be established.
Two networks at the same Equinix IX may be unable to peer if one has a RESTRICTIVE
policy requiring traffic minimums or geographic coverage.
OPEN- Will peer with anyone who requests it. Easiest to establish.SELECTIVE- Evaluates peering requests on a case-by-case basis. May require minimum traffic or presence in multiple locations.RESTRICTIVE- Has strict requirements for peering (traffic ratios, contracts, geographic presence). Most difficult to establish.NO- Does not peer. Only reachable via transit or private connectivity (e.g., Fabric).
- Author:
- ianjones
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PeeringPolicyfromPeeringDb(String pdbValue) Parses the PeeringDBpolicy_generalstring to an enum value.static PeeringPolicyReturns the enum constant of this class with the specified name.static PeeringPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN
-
SELECTIVE
-
RESTRICTIVE
-
NO
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromPeeringDb
Parses the PeeringDBpolicy_generalstring to an enum value.- Parameters:
pdbValue- the raw PeeringDB value (e.g., "Open", "Selective", "Restrictive", "No")- Returns:
- the matching policy, or
UNKNOWNif unrecognized or null
-