org.apache.cassandra.locator
Class RackAwareStrategy
java.lang.Object
org.apache.cassandra.locator.AbstractStrategy
org.apache.cassandra.locator.RackAwareStrategy
- All Implemented Interfaces:
- IReplicaPlacementStrategy
public class RackAwareStrategy
- extends AbstractStrategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RackAwareStrategy
public RackAwareStrategy(TokenMetadata tokenMetadata,
IPartitioner partitioner,
int replicas,
int storagePort)
getStorageEndPoints
public EndPoint[] getStorageEndPoints(Token token)
- Specified by:
getStorageEndPoints
in interface IReplicaPlacementStrategy
- Specified by:
getStorageEndPoints
in class AbstractStrategy
getStorageEndPoints
public java.util.Map<java.lang.String,EndPoint[]> getStorageEndPoints(java.lang.String[] keys)
getStorageEndPoints
public EndPoint[] getStorageEndPoints(Token token,
java.util.Map<Token,EndPoint> tokenToEndPointMap)
Copyright © 2009 The Apache Software Foundation