public class Ec2Snitch extends AbstractNetworkTopologySnitch
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
Ec2Snitch() |
Ec2Snitch(SnitchProperties props) |
| 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
|
boolean |
validate(java.util.Set<java.lang.String> datacenters,
java.util.Set<java.lang.String> racks)
Determine if the datacenter or rack values in the current node's snitch conflict with those passed in parameters.
|
compareEndpointsgossiperStarting, isWorthMergingForRangeQuery, sortedByProximityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDatacenter, getLocalDatacenter, getLocalRackpublic Ec2Snitch()
throws java.io.IOException,
ConfigurationException
java.io.IOExceptionConfigurationExceptionpublic Ec2Snitch(SnitchProperties props) throws java.io.IOException, ConfigurationException
java.io.IOExceptionConfigurationExceptionpublic 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 endpointpublic boolean validate(java.util.Set<java.lang.String> datacenters,
java.util.Set<java.lang.String> racks)
IEndpointSnitchCopyright © 2009-2020 The Apache Software Foundation