Package net.spy.memcached.vbucket

Examples of net.spy.memcached.vbucket.ConfigurationException


     *
     * @return an atomic reference to the current Map of buckets
     */
    private AtomicReference<Map<String, Bucket>> getCurrentBuckets() {
  if (currentBuckets == null) {
      throw new ConfigurationException("Buckets were never populated.");
  }
  return currentBuckets;
    }
View Full Code Here


      cfb.setFailureMode(FailureMode.Retry)
        .setProtocol(ConnectionFactoryBuilder.Protocol.BINARY)
        .setHashAlg(HashAlgorithm.KETAMA_HASH)
        .setLocatorType(ConnectionFactoryBuilder.Locator.CONSISTENT);
    } else {
      throw new ConfigurationException("Bucket type not supported or JSON response unexpected");
    }
    if (!this.configurationProvider.getAnonymousAuthBucket().equals(bucketName) && usr != null) {
      AuthDescriptor ad = new AuthDescriptor(new String[]{"PLAIN"},
        new PlainCallbackHandler(usr, pwd));
      cfb.setAuthDescriptor(ad);
View Full Code Here

TOP

Related Classes of net.spy.memcached.vbucket.ConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.