public class GossipingPropertyFileSnitch extends AbstractNetworkTopologySnitch
Constructor and Description |
---|
GossipingPropertyFileSnitch() |
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
|
void |
gossiperStarting()
called after Gossiper instance exists immediately before it starts gossiping
|
compareEndpoints
isWorthMergingForRangeQuery, sortedByProximity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDatacenter, getLocalDatacenter, getLocalRack, validate
public GossipingPropertyFileSnitch() throws ConfigurationException
ConfigurationException
public java.lang.String getDatacenter(InetAddressAndPort endpoint)
getDatacenter
in interface IEndpointSnitch
getDatacenter
in class AbstractNetworkTopologySnitch
endpoint
- the endpoint to processpublic java.lang.String getRack(InetAddressAndPort endpoint)
getRack
in interface IEndpointSnitch
getRack
in class AbstractNetworkTopologySnitch
endpoint
- the endpoint to processpublic void gossiperStarting()
IEndpointSnitch
gossiperStarting
in interface IEndpointSnitch
gossiperStarting
in class AbstractEndpointSnitch
Copyright © 2009-2019 The Apache Software Foundation