org.apache.cassandra.locator
Class RackUnawareStrategy
java.lang.Object
org.apache.cassandra.locator.AbstractStrategy
org.apache.cassandra.locator.RackUnawareStrategy
- All Implemented Interfaces:
- IReplicaPlacementStrategy
public class RackUnawareStrategy
- extends AbstractStrategy
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)
getStorageEndPoints
public EndPoint[] getStorageEndPoints(Token token)
- Specified by:
getStorageEndPoints
in interface IReplicaPlacementStrategy
- Specified by:
getStorageEndPoints
in class AbstractStrategy
getStorageEndPoints
public EndPoint[] getStorageEndPoints(Token token,
java.util.Map<Token,EndPoint> tokenToEndPointMap)
getStorageEndPoints
public java.util.Map<java.lang.String,EndPoint[]> getStorageEndPoints(java.lang.String[] keys)
Copyright © 2009 The Apache Software Foundation