org.apache.cassandra.locator
Class RackAwareStrategy
java.lang.Object
org.apache.cassandra.locator.AbstractReplicationStrategy
org.apache.cassandra.locator.RackAwareStrategy
public class RackAwareStrategy
- extends AbstractReplicationStrategy
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)
getReadStorageEndPoints
public EndPoint[] getReadStorageEndPoints(Token token)
- Specified by:
getReadStorageEndPoints
in class AbstractReplicationStrategy
getReadStorageEndPoints
public EndPoint[] getReadStorageEndPoints(Token token,
java.util.Map<Token,EndPoint> tokenToEndPointMap)
- Specified by:
getReadStorageEndPoints
in class AbstractReplicationStrategy
getWriteStorageEndPoints
public EndPoint[] getWriteStorageEndPoints(Token token)
- Specified by:
getWriteStorageEndPoints
in class AbstractReplicationStrategy
getHintedStorageEndPointsForWrite
public java.util.Map<EndPoint,EndPoint> getHintedStorageEndPointsForWrite(Token token)
Copyright © 2009 The Apache Software Foundation