|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.locator.AbstractReplicationStrategy
org.apache.cassandra.locator.LocalStrategy
public class LocalStrategy
| Field Summary |
|---|
| Fields inherited from class org.apache.cassandra.locator.AbstractReplicationStrategy |
|---|
configOptions, snitch, table |
| Constructor Summary | |
|---|---|
LocalStrategy(java.lang.String table,
TokenMetadata tokenMetadata,
IEndpointSnitch snitch,
java.util.Map<java.lang.String,java.lang.String> configOptions)
|
|
| Method Summary | |
|---|---|
java.util.List<java.net.InetAddress> |
calculateNaturalEndpoints(Token token,
TokenMetadata metadata)
calculate the natural endpoints for the given token |
int |
getReplicationFactor()
calculate the RF based on strategy_options. |
void |
validateOptions()
|
| Methods inherited from class org.apache.cassandra.locator.AbstractReplicationStrategy |
|---|
cacheEndpoint, clearEndpointCache, createReplicationStrategy, createReplicationStrategy, getAddressRanges, getAddressRanges, getCachedEndpoints, getClass, getHintedEndpoints, getNaturalEndpoints, getPendingAddressRanges, getRangeAddresses, getWriteResponseHandler, invalidateCachedTokenEndpointValues, validateReplicationFactor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalStrategy(java.lang.String table,
TokenMetadata tokenMetadata,
IEndpointSnitch snitch,
java.util.Map<java.lang.String,java.lang.String> configOptions)
| Method Detail |
|---|
public java.util.List<java.net.InetAddress> calculateNaturalEndpoints(Token token,
TokenMetadata metadata)
AbstractReplicationStrategy
calculateNaturalEndpoints in class AbstractReplicationStrategytoken - the token the natural endpoints are requested for
AbstractReplicationStrategy.getNaturalEndpoints(org.apache.cassandra.dht.Token)public int getReplicationFactor()
AbstractReplicationStrategy
getReplicationFactor in class AbstractReplicationStrategy
public void validateOptions()
throws ConfigurationException
validateOptions in class AbstractReplicationStrategyConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||