public class CacheConfig extends java.lang.Object implements Config
| Constructor and Description |
|---|
CacheConfig(int serversCount) |
| 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() |
HashAlgorithm |
getHashAlgorithm() |
int |
getMaster(int vbucketIndex) |
int |
getReplica(int vbucketIndex,
int replicaIndex) |
int |
getReplicasCount() |
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() |
void |
setServers(java.util.List<java.lang.String> newServers) |
void |
setVbuckets(java.util.List<VBucket> newVbuckets) |
public int getReplicasCount()
getReplicasCount in interface Configpublic int getVbucketsCount()
getVbucketsCount in interface Configpublic int getServersCount()
getServersCount in interface Configpublic java.lang.String getServer(int serverIndex)
public int getVbucketByKey(java.lang.String key)
getVbucketByKey in interface Configpublic int getReplica(int vbucketIndex,
int replicaIndex)
getReplica in interface Configpublic int foundIncorrectMaster(int vbucket,
int wrongServer)
foundIncorrectMaster in interface Configpublic 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 Configpublic java.util.List<VBucket> getVbuckets()
getVbuckets in interface Configpublic ConfigDifference compareTo(Config config)
public HashAlgorithm getHashAlgorithm()
getHashAlgorithm in interface Configpublic ConfigType getConfigType()
getConfigType in interface Configpublic java.util.List<java.net.URL> getCouchServers()
getCouchServers in interface ConfigCopyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.