Package org.apache.cassandra.dht
Class BootStrapper
java.lang.Object
org.apache.cassandra.utils.progress.ProgressEventNotifierSupport
org.apache.cassandra.dht.BootStrapper
- All Implemented Interfaces:
ProgressEventNotifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InetAddressAndPortprotected final TokenMetadataprotected final Collection<Token> -
Constructor Summary
ConstructorsConstructorDescriptionBootStrapper(InetAddressAndPort address, Collection<Token> tokens, TokenMetadata tmd) -
Method Summary
Modifier and TypeMethodDescriptionbootstrap(StreamStateStore stateStore, boolean useStrictConsistency) static Collection<Token>getBootstrapTokens(TokenMetadata metadata, InetAddressAndPort address, long schemaTimeoutMillis, long ringTimeoutMillis) if initialtoken was specified, use that (split on comma).static Collection<Token>getRandomTokens(TokenMetadata metadata, int numTokens) Methods inherited from class org.apache.cassandra.utils.progress.ProgressEventNotifierSupport
addProgressListener, fireProgressEvent, removeProgressListener
-
Field Details
-
address
-
tokens
-
tokenMetadata
-
-
Constructor Details
-
BootStrapper
-
-
Method Details
-
bootstrap
-
getBootstrapTokens
public static Collection<Token> getBootstrapTokens(TokenMetadata metadata, InetAddressAndPort address, long schemaTimeoutMillis, long ringTimeoutMillis) throws ConfigurationException if initialtoken was specified, use that (split on comma). otherwise, if allocationKeyspace is specified use the token allocation algorithm to generate suitable tokens else choose num_tokens tokens at random- Throws:
ConfigurationException
-
getRandomTokens
-