LOGGER.info("HTTP Bootstrap manually disabled.");
return Observable.error(new ConfigurationException("HTTP Bootstrap disabled through configuration."));
}
return cluster()
.<BucketConfigResponse>send(new BucketConfigRequest(TERSE_PATH, hostname, bucket, password))
.flatMap(new Func1<BucketConfigResponse, Observable<BucketConfigResponse>>() {
@Override
public Observable<BucketConfigResponse> call(BucketConfigResponse response) {
if (response.status().isSuccess()) {
LOGGER.debug("Successfully got config from terse bucket remote.");
return Observable.just(response);
}
LOGGER.debug("Terse bucket config failed, falling back to verbose.");
return cluster().send(new BucketConfigRequest(VERBOSE_PATH, hostname, bucket, password));
}
}).map(new Func1<BucketConfigResponse, String>() {
@Override
public String call(BucketConfigResponse response) {
if (!response.status().isSuccess()) {