## Uses of Class
org.apache.cassandra.locator.TokenMetadata

Packages that use TokenMetadata
org.apache.cassandra.dht
org.apache.cassandra.locator
org.apache.cassandra.service

### Uses of TokenMetadata in org.apache.cassandra.dht

Fields in org.apache.cassandra.dht declared as TokenMetadata
`protected TokenMetadata` BootStrapper.`tokenMetadata`

Methods in org.apache.cassandra.dht with parameters of type TokenMetadata
`static java.util.Collection<Token>` BootStrapper.`getBootstrapTokens(TokenMetadata metadata)` if initialtoken was specified, use that (split on comma).
`static java.util.Collection<Token>` BootStrapper.`getRandomTokens(TokenMetadata metadata, int numTokens)`

Constructors in org.apache.cassandra.dht with parameters of type TokenMetadata
Constructor and Description
`BootStrapper(java.net.InetAddress address, java.util.Collection<Token> tokens, TokenMetadata tmd)`
`RangeStreamer(TokenMetadata metadata, java.util.Collection<Token> tokens, java.net.InetAddress address, java.lang.String description, boolean useStrictConsistency, IEndpointSnitch snitch, StreamStateStore stateStore)`

### Uses of TokenMetadata in org.apache.cassandra.locator

Methods in org.apache.cassandra.locator that return TokenMetadata
`TokenMetadata` TokenMetadata.`cachedOnlyTokenMap()` Return a cached TokenMetadata with only tokenToEndpointMap, i.e., the same as cloneOnlyTokenMap but uses a cached copy that is invalided when the ring changes, so in the common case no extra locking is required.
`TokenMetadata` TokenMetadata.`cloneAfterAllLeft()` Create a copy of TokenMetadata with tokenToEndpointMap reflecting situation after all current leave operations have finished.
`TokenMetadata` TokenMetadata.`cloneAfterAllSettled()` Create a copy of TokenMetadata with tokenToEndpointMap reflecting situation after all current leave, and move operations have finished.
`TokenMetadata` TokenMetadata.`cloneOnlyTokenMap()` Create a copy of TokenMetadata with only tokenToEndpointMap.

Methods in org.apache.cassandra.locator with parameters of type TokenMetadata
`abstract java.util.List<java.net.InetAddress>` AbstractReplicationStrategy.`calculateNaturalEndpoints(Token searchToken, TokenMetadata tokenMetadata)` calculate the natural endpoints for the given token
`java.util.List<java.net.InetAddress>` LocalStrategy.`calculateNaturalEndpoints(Token token, TokenMetadata metadata)`
`java.util.List<java.net.InetAddress>` NetworkTopologyStrategy.`calculateNaturalEndpoints(Token searchToken, TokenMetadata tokenMetadata)` calculate endpoints in one pass through the tokens by tracking our progress in each DC, rack etc.
`java.util.List<java.net.InetAddress>` OldNetworkTopologyStrategy.`calculateNaturalEndpoints(Token token, TokenMetadata metadata)`
`java.util.List<java.net.InetAddress>` SimpleStrategy.`calculateNaturalEndpoints(Token token, TokenMetadata metadata)`
`static AbstractReplicationStrategy` AbstractReplicationStrategy.`createReplicationStrategy(java.lang.String keyspaceName, java.lang.Class<? extends AbstractReplicationStrategy> strategyClass, TokenMetadata tokenMetadata, IEndpointSnitch snitch, java.util.Map<java.lang.String,java.lang.String> strategyOptions)`
`com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>>` AbstractReplicationStrategy.`getAddressRanges(TokenMetadata metadata)`
`java.util.Collection<Range<Token>>` AbstractReplicationStrategy.`getPendingAddressRanges(TokenMetadata metadata, java.util.Collection<Token> pendingTokens, java.net.InetAddress pendingAddress)`
`java.util.Collection<Range<Token>>` AbstractReplicationStrategy.`getPendingAddressRanges(TokenMetadata metadata, Token pendingToken, java.net.InetAddress pendingAddress)`
`com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress>` AbstractReplicationStrategy.`getRangeAddresses(TokenMetadata metadata)`
`static void` AbstractReplicationStrategy.`validateReplicationStrategy(java.lang.String keyspaceName, java.lang.Class<? extends AbstractReplicationStrategy> strategyClass, TokenMetadata tokenMetadata, IEndpointSnitch snitch, java.util.Map<java.lang.String,java.lang.String> strategyOptions)`

Constructors in org.apache.cassandra.locator with parameters of type TokenMetadata
Constructor and Description
`LocalStrategy(java.lang.String keyspaceName, TokenMetadata tokenMetadata, IEndpointSnitch snitch, java.util.Map<java.lang.String,java.lang.String> configOptions)`
`NetworkTopologyStrategy(java.lang.String keyspaceName, TokenMetadata tokenMetadata, IEndpointSnitch snitch, java.util.Map<java.lang.String,java.lang.String> configOptions)`
`OldNetworkTopologyStrategy(java.lang.String keyspaceName, TokenMetadata tokenMetadata, IEndpointSnitch snitch, java.util.Map<java.lang.String,java.lang.String> configOptions)`
`SimpleStrategy(java.lang.String keyspaceName, TokenMetadata tokenMetadata, IEndpointSnitch snitch, java.util.Map<java.lang.String,java.lang.String> configOptions)`

### Uses of TokenMetadata in org.apache.cassandra.service

Methods in org.apache.cassandra.service that return TokenMetadata
`TokenMetadata` StorageService.`getTokenMetadata()`