public class MemcacheConfig extends java.lang.Object implements Config
Constructor and Description |
---|
MemcacheConfig(int serversCount,
java.util.List<java.lang.String> restEndpoints) |
Modifier and Type | Method and Description |
---|---|
ConfigDifference |
compareTo(Config config) |
int |
foundIncorrectMaster(int vbucket,
int wrongServer) |
ConfigType |
getConfigType() |
java.util.List<java.net.URL> |
getCouchServers() |
net.spy.memcached.HashAlgorithm |
getHashAlgorithm() |
int |
getMaster(int vbucketIndex) |
int |
getReplica(int vbucketIndex,
int replicaIndex) |
int |
getReplicasCount() |
java.util.List<java.lang.String> |
getRestEndpoints() |
java.lang.String |
getServer(int serverIndex) |
java.util.List<java.lang.String> |
getServers() |
int |
getServersCount() |
int |
getVbucketByKey(java.lang.String key) |
java.util.List<VBucket> |
getVbuckets() |
int |
getVbucketsCount() |
boolean |
isTainted()
If the current config is tainted and will most possibly be replaced soon
with a clean one.
|
void |
setServers(java.util.List<java.lang.String> newServers) |
void |
setVbuckets(java.util.List<VBucket> newVbuckets) |
java.lang.String |
toString() |
public MemcacheConfig(int serversCount, java.util.List<java.lang.String> restEndpoints)
public java.util.List<java.lang.String> getRestEndpoints()
getRestEndpoints
in interface Config
public int getReplicasCount()
getReplicasCount
in interface Config
public int getVbucketsCount()
getVbucketsCount
in interface Config
public int getServersCount()
getServersCount
in interface Config
public java.lang.String getServer(int serverIndex)
public int getVbucketByKey(java.lang.String key)
getVbucketByKey
in interface Config
public int getReplica(int vbucketIndex, int replicaIndex)
getReplica
in interface Config
public int foundIncorrectMaster(int vbucket, int wrongServer)
foundIncorrectMaster
in interface Config
public void setServers(java.util.List<java.lang.String> newServers)
public void setVbuckets(java.util.List<VBucket> newVbuckets)
public java.util.List<java.lang.String> getServers()
getServers
in interface Config
public java.util.List<VBucket> getVbuckets()
getVbuckets
in interface Config
public ConfigDifference compareTo(Config config)
public net.spy.memcached.HashAlgorithm getHashAlgorithm()
getHashAlgorithm
in interface Config
public ConfigType getConfigType()
getConfigType
in interface Config
public java.util.List<java.net.URL> getCouchServers()
getCouchServers
in interface Config
public boolean isTainted()
Config
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.