org.apache.cassandra.locator
Class RackUnawareStrategy
java.lang.Object
org.apache.cassandra.locator.AbstractReplicationStrategy
org.apache.cassandra.locator.RackUnawareStrategy
public class RackUnawareStrategy
- extends AbstractReplicationStrategy
This class returns the nodes responsible for a given
key but does not respect rack awareness. Basically
returns the 3 nodes that lie right next to each other
on the ring.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RackUnawareStrategy
public RackUnawareStrategy(TokenMetadata tokenMetadata,
IPartitioner partitioner,
int replicas,
int storagePort)
getReadStorageEndPoints
public EndPoint[] getReadStorageEndPoints(Token token)
- Specified by:
getReadStorageEndPoints
in class AbstractReplicationStrategy
getWriteStorageEndPoints
public EndPoint[] getWriteStorageEndPoints(Token token)
- Specified by:
getWriteStorageEndPoints
in class AbstractReplicationStrategy
getReadStorageEndPoints
public EndPoint[] getReadStorageEndPoints(Token token,
java.util.Map<Token,EndPoint> tokenToEndPointMap)
- Specified by:
getReadStorageEndPoints
in class AbstractReplicationStrategy
Copyright © 2009 The Apache Software Foundation