public class GossipingPropertyFileSnitch extends AbstractNetworkTopologySnitch
Constructor and Description |
---|
GossipingPropertyFileSnitch() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDatacenter(java.net.InetAddress endpoint)
Return the data center for which an endpoint resides in
|
java.lang.String |
getRack(java.net.InetAddress endpoint)
Return the rack for which an endpoint resides in
|
void |
gossiperStarting()
called after Gossiper instance exists immediately before it starts gossiping
|
compareEndpoints
getSortedListByProximity, isWorthMergingForRangeQuery, sortByProximity
public GossipingPropertyFileSnitch() throws ConfigurationException
ConfigurationException
public java.lang.String getDatacenter(java.net.InetAddress endpoint)
getDatacenter
in interface IEndpointSnitch
getDatacenter
in class AbstractNetworkTopologySnitch
endpoint
- the endpoint to processpublic java.lang.String getRack(java.net.InetAddress 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 © 2016 The Apache Software Foundation