org.apache.cassandra.locator
Class RackAwareStrategy

java.lang.Object
  extended by org.apache.cassandra.locator.AbstractReplicationStrategy
      extended by org.apache.cassandra.locator.RackAwareStrategy

public class RackAwareStrategy
extends AbstractReplicationStrategy


Field Summary
 
Fields inherited from class org.apache.cassandra.locator.AbstractReplicationStrategy
logger_, partitioner_, replicas_, tokenMetadata_
 
Constructor Summary
RackAwareStrategy(TokenMetadata tokenMetadata, IPartitioner partitioner, int replicas)
           
 
Method Summary
 java.util.ArrayList<java.net.InetAddress> getNaturalEndpoints(Token token, TokenMetadata metadata)
           
 
Methods inherited from class org.apache.cassandra.locator.AbstractReplicationStrategy
getAddressRanges, getAddressRanges, getHintedEndpoints, getNaturalEndpoints, getPendingAddressRanges, getRangeAddresses, getWriteEndpoints, getWriteResponseHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RackAwareStrategy

public RackAwareStrategy(TokenMetadata tokenMetadata,
                         IPartitioner partitioner,
                         int replicas)
Method Detail

getNaturalEndpoints

public java.util.ArrayList<java.net.InetAddress> getNaturalEndpoints(Token token,
                                                                     TokenMetadata metadata)
Specified by:
getNaturalEndpoints in class AbstractReplicationStrategy


Copyright © 2010 The Apache Software Foundation