public class BootStrapper extends ProgressEventNotifierSupport
| Modifier and Type | Class and Description | 
|---|---|
| static class  | BootStrapper.StringSerializer | 
| Modifier and Type | Field and Description | 
|---|---|
| protected java.net.InetAddress | address | 
| protected TokenMetadata | tokenMetadata | 
| protected java.util.Collection<Token> | tokens | 
| Constructor and Description | 
|---|
| BootStrapper(java.net.InetAddress address,
            java.util.Collection<Token> tokens,
            TokenMetadata tmd) | 
| Modifier and Type | Method and Description | 
|---|---|
| com.google.common.util.concurrent.ListenableFuture<StreamState> | bootstrap(StreamStateStore stateStore,
         boolean useStrictConsistency) | 
| static java.util.Collection<Token> | getBootstrapTokens(TokenMetadata metadata,
                  java.net.InetAddress address,
                  int schemaWaitDelay)if initialtoken was specified, use that (split on comma). | 
| static java.util.Collection<Token> | getRandomTokens(TokenMetadata metadata,
               int numTokens) | 
addProgressListener, fireProgressEvent, removeProgressListenerprotected final java.net.InetAddress address
protected final java.util.Collection<Token> tokens
protected final TokenMetadata tokenMetadata
public BootStrapper(java.net.InetAddress address,
                    java.util.Collection<Token> tokens,
                    TokenMetadata tmd)
public com.google.common.util.concurrent.ListenableFuture<StreamState> bootstrap(StreamStateStore stateStore, boolean useStrictConsistency)
public static java.util.Collection<Token> getBootstrapTokens(TokenMetadata metadata, java.net.InetAddress address, int schemaWaitDelay) throws ConfigurationException
ConfigurationExceptionpublic static java.util.Collection<Token> getRandomTokens(TokenMetadata metadata, int numTokens)
Copyright © 2018 The Apache Software Foundation