Package org.apache.cassandra.locator
Class GossipingPropertyFileSnitch
java.lang.Object
org.apache.cassandra.locator.AbstractEndpointSnitch
org.apache.cassandra.locator.AbstractNetworkTopologySnitch
org.apache.cassandra.locator.GossipingPropertyFileSnitch
- All Implemented Interfaces:
IEndpointSnitch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDatacenter(InetAddressAndPort endpoint) Return the data center for which an endpoint resides ingetRack(InetAddressAndPort endpoint) Return the rack for which an endpoint resides invoidcalled after Gossiper instance exists immediately before it starts gossipingMethods inherited from class org.apache.cassandra.locator.AbstractNetworkTopologySnitch
compareEndpointsMethods inherited from class org.apache.cassandra.locator.AbstractEndpointSnitch
isWorthMergingForRangeQuery, sortedByProximityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.locator.IEndpointSnitch
getDatacenter, getDatacenter, getLocalDatacenter, getLocalRack, validate
-
Constructor Details
-
GossipingPropertyFileSnitch
- Throws:
ConfigurationException
-
-
Method Details
-
getDatacenter
Return the data center for which an endpoint resides in- Specified by:
getDatacenterin interfaceIEndpointSnitch- Specified by:
getDatacenterin classAbstractNetworkTopologySnitch- Parameters:
endpoint- the endpoint to process- Returns:
- string of data center
-
getRack
Return the rack for which an endpoint resides in- Specified by:
getRackin interfaceIEndpointSnitch- Specified by:
getRackin classAbstractNetworkTopologySnitch- Parameters:
endpoint- the endpoint to process- Returns:
- string of rack
-
gossiperStarting
public void gossiperStarting()Description copied from interface:IEndpointSnitchcalled after Gossiper instance exists immediately before it starts gossiping- Specified by:
gossiperStartingin interfaceIEndpointSnitch- Overrides:
gossiperStartingin classAbstractEndpointSnitch
-