org.apache.cassandra.locator
Class AbstractStrategy
java.lang.Object
org.apache.cassandra.locator.AbstractStrategy
- All Implemented Interfaces:
- IReplicaPlacementStrategy
- Direct Known Subclasses:
- RackAwareStrategy, RackUnawareStrategy
public abstract class AbstractStrategy
- extends java.lang.Object
- implements IReplicaPlacementStrategy
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 org.apache.log4j.Logger logger_
tokenMetadata_
protected TokenMetadata tokenMetadata_
partitioner_
protected IPartitioner partitioner_
replicas_
protected int replicas_
storagePort_
protected int storagePort_
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)
getHintedStorageEndPoints
public java.util.Map<EndPoint,EndPoint> getHintedStorageEndPoints(Token token)
- Specified by:
getHintedStorageEndPoints
in interface IReplicaPlacementStrategy
getStorageEndPoints
public abstract EndPoint[] getStorageEndPoints(Token token)
- Specified by:
getStorageEndPoints
in interface IReplicaPlacementStrategy
Copyright © 2009 The Apache Software Foundation