public class RackInferringSnitch extends AbstractNetworkTopologySnitch
| Constructor and Description |
|---|
RackInferringSnitch() |
| 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
|
compareEndpointsgossiperStarting, isWorthMergingForRangeQuery, sortedByProximityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDatacenter, getLocalDatacenter, getLocalRack, validatepublic java.lang.String getRack(InetAddressAndPort endpoint)
AbstractNetworkTopologySnitchgetRack in interface IEndpointSnitchgetRack in class AbstractNetworkTopologySnitchendpoint - a specified endpointpublic java.lang.String getDatacenter(InetAddressAndPort endpoint)
AbstractNetworkTopologySnitchgetDatacenter in interface IEndpointSnitchgetDatacenter in class AbstractNetworkTopologySnitchendpoint - a specified endpointCopyright © 2009-2022 The Apache Software Foundation