Uses of Class org.apache.cassandra.locator.TokenMetadata (apache-cassandra API)
Date: 2018-02-14

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

- Packages that use TokenMetadata
  Package | Description
  --- | ---
  org.apache.cassandra.dht |
  org.apache.cassandra.dht.tokenallocator |
  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
    Modifier and Type | Field and Description
    --- | ---
    `protected TokenMetadata` | BootStrapper.`tokenMetadata`

    Methods in org.apache.cassandra.dht with parameters of type TokenMetadata
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.Collection<Token>` | BootStrapper.`getBootstrapTokens(TokenMetadata metadata, java.net.InetAddress address, int schemaWaitDelay)` 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, boolean connectSequentially)`

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

    Methods in org.apache.cassandra.dht.tokenallocator with parameters of type TokenMetadata
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.Collection<Token>` | TokenAllocation.`allocateTokens(TokenMetadata tokenMetadata, AbstractReplicationStrategy rs, java.net.InetAddress endpoint, int numTokens)`
    `static java.util.Map<java.net.InetAddress,java.lang.Double>` | TokenAllocation.`evaluateReplicatedOwnership(TokenMetadata tokenMetadata, AbstractReplicationStrategy rs)`
    `static org.apache.commons.math3.stat.descriptive.SummaryStatistics` | TokenAllocation.`replicatedOwnershipStats(TokenMetadata tokenMetadata, AbstractReplicationStrategy rs, java.net.InetAddress endpoint)`

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

    Methods in org.apache.cassandra.locator that return TokenMetadata
    Modifier and Type | Method and Description
    --- | ---
    `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.
    `TokenMetadata` | TokenMetadata.`cloneWithNewPartitioner(IPartitioner newPartitioner)` To be used by tests only (via `StorageService.setPartitionerUnsafe(org.apache.cassandra.dht.IPartitioner)`).

    Methods in org.apache.cassandra.locator with parameters of type TokenMetadata
    Modifier and Type | Method and Description
    --- | ---
    `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.
    `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
    `AbstractReplicationStrategy(java.lang.String keyspaceName, TokenMetadata tokenMetadata, IEndpointSnitch snitch, java.util.Map<java.lang.String,java.lang.String> configOptions)`
    `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
    Modifier and Type | Method and Description
    --- | ---
    `TokenMetadata` | StorageService.`getTokenMetadata()`

Copyright © 2018 The Apache Software Foundation