Examples of ConfigurationProviderHTTP


Examples of com.couchbase.client.vbucket.ConfigurationProviderHTTP

      throw new ConfigurationException("Could not fetch valid configuration "
        + "from provided nodes. Stopping.");
    } else if (config.isNotUpdating()) {
      LOGGER.warning("Noticed bucket configuration to be disconnected, "
        + "will attempt to reconnect");
      setConfigurationProvider(new ConfigurationProviderHTTP(storedBaseList,
        bucket, pass));
    }
    return configurationProvider.getBucketConfiguration(bucket).getConfig();
  }
View Full Code Here

Examples of com.couchbase.client.vbucket.ConfigurationProviderHTTP

          ConfigurationProvider oldConfigProvider = getConfigurationProvider();
          Reconfigurable oldRec = oldConfigProvider.getReconfigurable();

          ConfigurationProvider newConfigProvider =
            new ConfigurationProviderHTTP(storedBaseList, bucket, pass);
          newConfigProvider.subscribe(bucket, oldRec);

          setConfigurationProvider(newConfigProvider);
          oldConfigProvider.shutdown();

          if (!doingResubscribe.compareAndSet(true, false)) {
View Full Code Here

Examples of net.spy.memcached.vbucket.ConfigurationProviderHTTP

    for (URI bu : baseList) {
      if (!bu.isAbsolute()) {
        throw new IllegalArgumentException("The base URI must be absolute");
      }
    }
    this.configurationProvider = new ConfigurationProviderHTTP(baseList, usr, pwd);
    Bucket bucket = this.configurationProvider.getBucketConfiguration(bucketName);
    Config config = bucket.getConfig();
    ConnectionFactoryBuilder cfb = new ConnectionFactoryBuilder();
    if (config.getConfigType() == ConfigType.MEMBASE) {
      cfb.setFailureMode(FailureMode.Retry)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.