Class NoReplicationTokenAllocator<Unit>
- java.lang.Object
-
- org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase<Unit>
-
- org.apache.cassandra.dht.tokenallocator.NoReplicationTokenAllocator<Unit>
-
- All Implemented Interfaces:
TokenAllocator<Unit>
public class NoReplicationTokenAllocator<Unit> extends TokenAllocatorBase<Unit>
-
-
Constructor Summary
Constructors Constructor Description NoReplicationTokenAllocator(java.util.NavigableMap<Token,Unit> sortedTokens, org.apache.cassandra.dht.tokenallocator.ReplicationStrategy<Unit> strategy, IPartitioner partitioner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Token>addUnit(Unit newUnit, int numTokens)protected voidcreateTokenInfos()Used in tests.intgetReplicas()java.lang.StringtoString()-
Methods inherited from class org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase
createUnitInfos
-
-
-
-
Constructor Detail
-
NoReplicationTokenAllocator
public NoReplicationTokenAllocator(java.util.NavigableMap<Token,Unit> sortedTokens, org.apache.cassandra.dht.tokenallocator.ReplicationStrategy<Unit> strategy, IPartitioner partitioner)
-
-
Method Detail
-
createTokenInfos
protected void createTokenInfos()
Used in tests.
-
getReplicas
public int getReplicas()
- Specified by:
getReplicasin classTokenAllocatorBase<Unit>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-