public static final class TieredIdentity.LocalityTier extends Object implements Serializable
Constructor and Description |
---|
LocalityTier(String tierName,
String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static TieredIdentity.LocalityTier |
fromThrift(LocalityTier localityTier) |
String |
getTierName() |
String |
getValue() |
int |
hashCode() |
boolean |
matches(TieredIdentity.LocalityTier otherTier)
Locality comparison for wire type locality tiers, two locality tiers matches if both name
and values are equal, or for the "node" tier, if the node names resolve to the same
IP address.
|
String |
toString() |
LocalityTier |
toThrift() |
public String getTierName()
public LocalityTier toThrift()
public static TieredIdentity.LocalityTier fromThrift(LocalityTier localityTier)
localityTier
- a Thrift locality tierpublic boolean matches(TieredIdentity.LocalityTier otherTier)
otherTier
- a wire type locality tier to compare toCopyright © 2023. All Rights Reserved.