public class AlibabaCloudSnitch extends AbstractNetworkTopologySnitch
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ecsRegion |
protected java.lang.String |
ecsZone |
protected static org.slf4j.Logger |
logger |
protected static java.lang.String |
ZONE_NAME_QUERY_URL |
Constructor and Description |
---|
AlibabaCloudSnitch() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDatacenter(InetAddressAndPort endpoint)
Return the data center for which an endpoint resides in
|
java.lang.String |
getRack(InetAddressAndPort endpoint)
Return the rack for which an endpoint resides in
|
compareEndpoints
gossiperStarting, isWorthMergingForRangeQuery, sortedByProximity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDatacenter, getLocalDatacenter, getLocalRack, validate
protected static final org.slf4j.Logger logger
protected static final java.lang.String ZONE_NAME_QUERY_URL
protected java.lang.String ecsZone
protected java.lang.String ecsRegion
public AlibabaCloudSnitch() throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
public java.lang.String getRack(InetAddressAndPort endpoint)
AbstractNetworkTopologySnitch
getRack
in interface IEndpointSnitch
getRack
in class AbstractNetworkTopologySnitch
endpoint
- a specified endpointpublic java.lang.String getDatacenter(InetAddressAndPort endpoint)
AbstractNetworkTopologySnitch
getDatacenter
in interface IEndpointSnitch
getDatacenter
in class AbstractNetworkTopologySnitch
endpoint
- a specified endpointCopyright © 2009-2022 The Apache Software Foundation