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
public class GossipingPropertyFileSnitch extends AbstractNetworkTopologySnitch
-
-
Constructor Summary
Constructors Constructor Description GossipingPropertyFileSnitch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDatacenter(InetAddressAndPort endpoint)
Return the data center for which an endpoint resides injava.lang.String
getRack(InetAddressAndPort endpoint)
Return the rack for which an endpoint resides invoid
gossiperStarting()
called after Gossiper instance exists immediately before it starts gossiping-
Methods inherited from class org.apache.cassandra.locator.AbstractNetworkTopologySnitch
compareEndpoints
-
Methods inherited from class org.apache.cassandra.locator.AbstractEndpointSnitch
isWorthMergingForRangeQuery, sortedByProximity
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.locator.IEndpointSnitch
getDatacenter, getDatacenter, getLocalDatacenter, getLocalRack, validate
-
-
-
-
Constructor Detail
-
GossipingPropertyFileSnitch
public GossipingPropertyFileSnitch() throws ConfigurationException
- Throws:
ConfigurationException
-
-
Method Detail
-
getDatacenter
public java.lang.String getDatacenter(InetAddressAndPort endpoint)
Return the data center for which an endpoint resides in- Specified by:
getDatacenter
in interfaceIEndpointSnitch
- Specified by:
getDatacenter
in classAbstractNetworkTopologySnitch
- Parameters:
endpoint
- the endpoint to process- Returns:
- string of data center
-
getRack
public java.lang.String getRack(InetAddressAndPort endpoint)
Return the rack for which an endpoint resides in- Specified by:
getRack
in interfaceIEndpointSnitch
- Specified by:
getRack
in classAbstractNetworkTopologySnitch
- Parameters:
endpoint
- the endpoint to process- Returns:
- string of rack
-
gossiperStarting
public void gossiperStarting()
Description copied from interface:IEndpointSnitch
called after Gossiper instance exists immediately before it starts gossiping- Specified by:
gossiperStarting
in interfaceIEndpointSnitch
- Overrides:
gossiperStarting
in classAbstractEndpointSnitch
-
-