org.apache.cassandra.locator
Class AbstractReplicationStrategy
java.lang.Object
org.apache.cassandra.locator.AbstractReplicationStrategy
- Direct Known Subclasses:
- RackAwareStrategy, RackUnawareStrategy
public abstract class AbstractReplicationStrategy
- extends java.lang.Object
This class contains a helper method that will be used by
all abstraction that implement the IReplicaPlacementStrategy
interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger_
protected static final org.apache.log4j.Logger logger_
tokenMetadata_
protected TokenMetadata tokenMetadata_
partitioner_
protected IPartitioner partitioner_
replicas_
protected int replicas_
storagePort_
protected int storagePort_
getWriteStorageEndPoints
public abstract EndPoint[] getWriteStorageEndPoints(Token token)
getReadStorageEndPoints
public abstract EndPoint[] getReadStorageEndPoints(Token token,
java.util.Map<Token,EndPoint> tokenToEndPointMap)
getReadStorageEndPoints
public abstract EndPoint[] getReadStorageEndPoints(Token token)
getHintedStorageEndPoints
public java.util.Map<EndPoint,EndPoint> getHintedStorageEndPoints(Token token)
retrofitPorts
protected void retrofitPorts(java.util.List<EndPoint> eps)
getNextAvailableEndPoint
protected EndPoint getNextAvailableEndPoint(EndPoint startPoint,
java.util.List<EndPoint> topN,
java.util.List<EndPoint> liveNodes)
Copyright © 2009 The Apache Software Foundation