Package org.apache.cassandra.locator
Class CloudstackSnitch
- java.lang.Object
-
- org.apache.cassandra.locator.AbstractEndpointSnitch
-
- org.apache.cassandra.locator.AbstractNetworkTopologySnitch
-
- org.apache.cassandra.locator.CloudstackSnitch
-
- All Implemented Interfaces:
IEndpointSnitch
@Deprecated public class CloudstackSnitch extends AbstractNetworkTopologySnitch
Deprecated.A snitch that assumes a Cloudstack Zone follows the typical conventioncountry-location-availability zone
and uses the country/location tuple as a datacenter and the availability zone as a rack This snitch is deprecated, and it is eligible for the removal in the next major release of Cassandra.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.cassandra.locator.AbstractCloudMetadataServiceConnector
connector
-
Constructor Summary
Constructors Constructor Description CloudstackSnitch()
Deprecated.CloudstackSnitch(org.apache.cassandra.locator.AbstractCloudMetadataServiceConnector connector)
Deprecated.CloudstackSnitch(SnitchProperties snitchProperties)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getDatacenter(InetAddressAndPort endpoint)
Return the data center for which an endpoint resides injava.lang.String
getLocalDatacenter()
returns a String representing the datacenter current endpoint belongs tojava.lang.String
getLocalRack()
returns a String representing the rack current endpoint belongs tojava.lang.String
getRack(InetAddressAndPort endpoint)
Return the rack for which an endpoint resides in-
Methods inherited from class org.apache.cassandra.locator.AbstractNetworkTopologySnitch
compareEndpoints
-
Methods inherited from class org.apache.cassandra.locator.AbstractEndpointSnitch
gossiperStarting, 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, validate
-
-
-
-
Constructor Detail
-
CloudstackSnitch
public CloudstackSnitch() throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
CloudstackSnitch
public CloudstackSnitch(SnitchProperties snitchProperties) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
CloudstackSnitch
public CloudstackSnitch(org.apache.cassandra.locator.AbstractCloudMetadataServiceConnector connector) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
getLocalRack
public final java.lang.String getLocalRack()
Description copied from interface:IEndpointSnitch
returns a String representing the rack current endpoint belongs to
-
getLocalDatacenter
public final java.lang.String getLocalDatacenter()
Description copied from interface:IEndpointSnitch
returns a String representing the datacenter current endpoint belongs to
-
getRack
public final java.lang.String getRack(InetAddressAndPort endpoint)
Description copied from class:AbstractNetworkTopologySnitch
Return the rack for which an endpoint resides in- Specified by:
getRack
in interfaceIEndpointSnitch
- Specified by:
getRack
in classAbstractNetworkTopologySnitch
- Parameters:
endpoint
- a specified endpoint- Returns:
- string of rack
-
getDatacenter
public final java.lang.String getDatacenter(InetAddressAndPort endpoint)
Description copied from class:AbstractNetworkTopologySnitch
Return the data center for which an endpoint resides in- Specified by:
getDatacenter
in interfaceIEndpointSnitch
- Specified by:
getDatacenter
in classAbstractNetworkTopologySnitch
- Parameters:
endpoint
- a specified endpoint- Returns:
- string of data center
-
-