net.spy.memcached.vbucket.config
Interface Config

All Known Implementing Classes:
CacheConfig, DefaultConfig

public interface Config


Method Summary
 ConfigDifference compareTo(Config config)
           
 int foundIncorrectMaster(int vbucket, int wrongServer)
           
 ConfigType getConfigType()
           
 HashAlgorithm getHashAlgorithm()
           
 int getMaster(int vbucketIndex)
           
 int getReplica(int vbucketIndex, int replicaIndex)
           
 int getReplicasCount()
           
 String getServer(int serverIndex)
           
 List<String> getServers()
           
 int getServersCount()
           
 int getVbucketByKey(String key)
           
 List<VBucket> getVbuckets()
           
 int getVbucketsCount()
           
 

Method Detail

getReplicasCount

int getReplicasCount()

getVbucketsCount

int getVbucketsCount()

getServersCount

int getServersCount()

getHashAlgorithm

HashAlgorithm getHashAlgorithm()

getServer

String getServer(int serverIndex)

getVbucketByKey

int getVbucketByKey(String key)

getMaster

int getMaster(int vbucketIndex)

getReplica

int getReplica(int vbucketIndex,
               int replicaIndex)

foundIncorrectMaster

int foundIncorrectMaster(int vbucket,
                         int wrongServer)

compareTo

ConfigDifference compareTo(Config config)

getServers

List<String> getServers()

getVbuckets

List<VBucket> getVbuckets()

getConfigType

ConfigType getConfigType()