org.apache.cassandra.dht
Class BootStrapper
java.lang.Object
org.apache.cassandra.dht.BootStrapper
public class BootStrapper
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
address
protected final java.net.InetAddress address
token
protected final Token token
tokenMetadata
protected final TokenMetadata tokenMetadata
BootStrapper
public BootStrapper(java.net.InetAddress address,
Token token,
TokenMetadata tmd)
bootstrap
public void bootstrap()
throws java.io.IOException
- Throws:
java.io.IOException
getBootstrapToken
public static Token getBootstrapToken(TokenMetadata metadata,
java.util.Map<java.net.InetAddress,java.lang.Double> load)
throws java.io.IOException,
ConfigurationException
- if initialtoken was specified, use that.
otherwise, pick a token to assume half the load of the most-loaded node.
- Throws:
java.io.IOException
ConfigurationException
getBalancedToken
public static Token getBalancedToken(TokenMetadata metadata,
java.util.Map<java.net.InetAddress,java.lang.Double> load)
Copyright © 2010 The Apache Software Foundation