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 void
createTokenInfos()
Used in tests.int
getReplicas()
java.lang.String
toString()
-
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:
getReplicas
in classTokenAllocatorBase<Unit>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-