public void validateOptions() throws ConfigurationException { if (configOptions == null || configOptions.get("replication_factor") == null) { throw new ConfigurationException("SimpleStrategy requires a replication_factor strategy option."); } validateReplicationFactor(configOptions.get("replication_factor")); }
public List<InetAddress> calculateNaturalEndpoints(Token token, TokenMetadata metadata) int replicas = getReplicationFactor(); List<InetAddress> endpoints = new ArrayList<InetAddress>(replicas); ArrayList<Token> tokens = metadata.sortedTokens();
public List<InetAddress> calculateNaturalEndpoints(Token token, TokenMetadata metadata) int replicas = getReplicationFactor(); List<InetAddress> endpoints = new ArrayList<InetAddress>(replicas); ArrayList<Token> tokens = metadata.sortedTokens();
public void validateOptions() throws ConfigurationException { if (configOptions == null || configOptions.get("replication_factor") == null) { throw new ConfigurationException("SimpleStrategy requires a replication_factor strategy option."); } validateReplicationFactor(configOptions.get("replication_factor")); }
public List<InetAddress> calculateNaturalEndpoints(Token token, TokenMetadata metadata) int replicas = getReplicationFactor(); List<InetAddress> endpoints = new ArrayList<InetAddress>(replicas); ArrayList<Token> tokens = metadata.sortedTokens();
public void validateOptions() throws ConfigurationException { if (configOptions == null || configOptions.get("replication_factor") == null) { throw new ConfigurationException("SimpleStrategy requires a replication_factor strategy option."); } validateReplicationFactor(configOptions.get("replication_factor")); }
public List<InetAddress> calculateNaturalEndpoints(Token token, TokenMetadata metadata) int replicas = getReplicationFactor(); List<InetAddress> endpoints = new ArrayList<InetAddress>(replicas); ArrayList<Token> tokens = metadata.sortedTokens();
public void validateOptions() throws ConfigurationException { if (configOptions == null || configOptions.get("replication_factor") == null) { throw new ConfigurationException("SimpleStrategy requires a replication_factor strategy option."); } validateReplicationFactor(configOptions.get("replication_factor")); }